PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
JellyFish
DevNet Resident
Posts: 1361 Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA
Post
by JellyFish » Fri Sep 11, 2009 9:13 pm
I get this 500 Internal Server Error on my simple script:
Code: Select all
session_start();
if ($preoutParams['require_login'] && !isset($_SESSION['login']))
{
header("Location: /login.php?redirect="+$_SERVER['REQUEST_URI']);
}
Why? Is it the location header that I'm sending?
Last edited by
JellyFish on Fri Sep 11, 2009 9:45 pm, edited 1 time in total.
JellyFish
DevNet Resident
Posts: 1361 Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA
Post
by JellyFish » Fri Sep 11, 2009 9:44 pm
+ DUR! I'm using the + operator instead of the . operator.
So nevermind.