[thelist] header ("Location ...

Bob Meetin ontheroad at frii.com
Fri Feb 16 18:19:10 CST 2007


I have some php forms which I use for updating images and galleries.  
When I delete an image I redirect to another page.  This works fine on 
my windows pc in both Firefox and even in IE (bless its heart).  But on 
my linux PC, it falters in both Firefox and Konqueror.  It seems to lose 
the session (or something) and redirected my unauthorized page which 
means that you need to login to use the utility. 

header ("Location: http://www.webserver.com/script.php");

I have a workaround.  I can do a chdir to get to the directory where the 
script.php file lives, then:

chdir ("/home/whatever/www");
header ("Location: script.php");

This works, but I am really curious what might be different in settings 
that cause the failure.  -Bob




More information about the thelist mailing list