There is no problem with Power PC's or the headers. I've been using PHP and Apache for a few years now on Macs without a problem. What it sounds like is that they did not configure Apache to allow index.php as a default directory index page. As I recall, Apache defaults to only allowing index.html or index.htm as a default directory page, you need to add index.php to the configuration file.


On Apr 1, 2004, at 3:24 AM, Marc Greenstock wrote:


Hi all,

I noticed on a clients Apple Mac Power PC that his php driven website wasn't
working for him. It wasn't loading up at all, in fact it was returning an
error that the URL could not be found.


I discovered a quick fix for the problem, that is to create a index.html
file and run a meta refresh to index.php, this seems to work.


Something in the headers php sends seems to screw up Power PC's resolving
method.


The headers I send are:

header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
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-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Cache-control: private");
header("Pragma: no-cache");

and what's being received is:

HTTP/1.1·200·OK
Date:·Thu,·01·Apr·2004·08:46:00·GMT
Server:·Apache/1.3.27·(Unix)··(Red-Hat/Linux)·mod_jk/1.2.0·mod_perl/ 1.26·PHP
/4.3.3·FrontPage/5.0.2·mod_ssl/2.8.12·OpenSSL/0.9.6bX-Powered-By:·PHP/ 4.3.3
Set-Cookie:·PHPSESSID=8ebf6b7d4895473a054bb8f50b2a66dd;·path=/
Expires:·Mon,·26·Jul·1997·05:00:00·GMT
Cache-Control:·private
Pragma:·no-cache
P3P:·CP="NOI·ADM·DEV·PSAi·COM·NAV·OUR·OTRo·STP·IND·DEM"
Last-Modified:·Thu,·01·Apr·2004·08:46:00·GMT
Connection:·close
Content-Type:·text/html


Is there anything in these headers that could cause Power PC's to fail
resolution?

Thank.

Marc.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to