PHP Header-Location not working?

Soldato
Joined
30 Nov 2005
Posts
3,084
Location
London
Trying to do a Header location redirect but all I get is "Internet Explorer cannot display the webpage".

Basically I run an upload script that inserts everything into a MySQL database then if the query was successful it does a Header location to a new page.

I have replaced the Header, with an echo to see if it works and the echo works fine.

Code:
header("Location:complete.php");

It's on an IIS Server, could it be because the upload is using up all the MAX Upload File/Post size even though everything still Inserts fine despite the error message.

Any ideas?

EDIT: In FireFox it works fine but IE is being odd as ever.
 
Last edited:
I put
Code:
error_reporting(E_ALL);
into the PHP file, tryed the upload script again and still just displays "Internet Explorer cannot display the webpage".
 
Last edited:
Problem solved!

Had to turn off Friendly HTTP error message in IE plus added
Code:
error_reporting(E_ALL);
to the top of the code.

It complained about a Session Start, which I quickly removed, as it wasn't supposed to be there anyway. :p

Cheers for the help.
 
Back
Top Bottom