Php page runs from one computer but not another
| From: | Jonathan Black | Date: | Tue, 20 Aug 2002 00:33:25 +0000 |
| Subject: | Php page runs from one computer but not another | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-113281@lists.php.net to get a copy of this message | ||
Hello,
php 4.2.1 Internet Explorer 6.
After some server upgrades at my webhoster I can see the phpinfo page from a
computer running windows 98, but not from another computer running windows
2000 server. Here I just see the php code in my browser.
I can run the same page on the machine with the problem if I simply rename
it.
The relevant url is:
http://www.natureinfo.org.il/users/webmaster/phpnatureinfo/phpinfo.php
I have tried to disable caching as you can see from the code of the page
which follows but this does not help:
<?php
added by jjb due to caching problems
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
header("Cache-Control: no-cache,must-revalidate");
header("Pragma: no-cache");
// Show all information, defaults to INFO_ALL
phpinfo();
?>
Thanks
Jonathan