Search found 4 matches

by robbrazier
Tue Jun 26, 2012 8:59 pm
Forum: Tutorials
Topic: Register and Login Tutorial problems
Replies: 9
Views: 1798

Re: Register and Login Tutorial problems

The weird thing about the unexpected $end is that no matter what I do, it always says there is the unexpected $end on the last line of login.php and register.php Also, what's wrong with the foreach loop? I checked php.net and they don't have curly brackets around the variable, so I tried removing th...
by robbrazier
Sun Jun 24, 2012 4:13 pm
Forum: Tutorials
Topic: Register and Login Tutorial problems
Replies: 9
Views: 1798

Re: Register and Login Tutorial problems

Here's the updated code: init.inc.php <?php session_start(); $exceptions = array('register', 'login'); $page = substr(end(explode('/', $_SERVER['SCRIPT_NAME'])), 0, -4); if (in_array($page, $exceptions) === false){ if (isset($_SESSION['username']) === false){ header('Location: login.php'); die(); } ...
by robbrazier
Sat Jun 23, 2012 8:06 pm
Forum: Tutorials
Topic: Register and Login Tutorial problems
Replies: 9
Views: 1798

Re: Register and Login Tutorial problems

That's odd :? What do you mean by show ? What happens instead ? I just see a white screen with safari, and chrome says The website encountered an error while retrieving http://grange.robbrazier.com/login.php. It may be down for maintenance or configured incorrectly. so there's not really much space...
by robbrazier
Sat Jun 23, 2012 5:26 pm
Forum: Tutorials
Topic: Register and Login Tutorial problems
Replies: 9
Views: 1798

Register and Login Tutorial problems

First off, I am wrapping the login/register/user management code with twitter bootstrap, if that makes any difference. I am not sure what is wrong really, but the register and login pages won't show :( Here are all of the files used: Before the login and register pages wouldn't show, users were not ...