[SOLVED] 500 Internal Server Error

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

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

[SOLVED] 500 Internal Server Error

Post by JellyFish »

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.
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Re: 500 Internal Server Error

Post by JellyFish »

+ DUR! I'm using the + operator instead of the . operator.

So nevermind.
Post Reply