Interesting PHP5 redirect problem
| From: | Carey Brown | Date: | Sat, 10 Dec 2005 22:48:18 +0000 |
| Subject: | Interesting PHP5 redirect problem | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-16884@lists.php.net to get a copy of this message | ||
Hello,
I upgraded from PHP4 to PHP5 by compiling the source code.
This code:
<?php
header('Location: http://server/website/index.php');
exit;
Carey Brown
IS Service Center
Extension 38580
?>
Works fine with the PHP4 module for Apache2 but with the PHP5 module,
the page comes up as a 403 file view forbidden (I have apache set to
search for valid index or default pages then throw this error so this is
normal). Normally I'd say that apache isn't recognizing index.php pages
as valid pages but if you type the url in manually, it opens properly.
It's only this redirect page that errors. If I put the above PHP script
in the body of an html page, the page loads as a blank and does
nothing.
Both PHP5 and PHP4 modules use the same ini and I did enable the zend
compatability option. Anyone have any ideas?