Daniel Brown
2007-11-01 14:23:22 UTC
Ave,
Somehow my PHP won't access, won't even acknowledge the existence of a =
Somehow my PHP won't access, won't even acknowledge the existence of a =
that is outside the /Library/WebServer/Documents folder. This was never=
problem before in any Mac version - it just started with Leopard.
I don't know what has changed where, in httpd.conf or php.ini or somewh=
I don't know what has changed where, in httpd.conf or php.ini or somewh=
else, but something changed that's crippling access to files outside of=
webserver.
This Works in Mac OS X 10.3.9 (i.e., prints File Exists) but the same e=
This Works in Mac OS X 10.3.9 (i.e., prints File Exists) but the same e=
script does not work in Mac OS X 10.5, and yes, the file is available i=
Leopard in the mentioned location - path is exact same - permissions ar=
$filename =3D "/Users/username/Documents/Transfers/test.txt";
if (file_exists($filename)) {
echo "The file $filename exists<br><br>";
} else {
echo "The file $filename does not exist<br><br>";
}
I=B9ve already checked safe_mode which is Off and open_basedir which is=
if (file_exists($filename)) {
echo "The file $filename exists<br><br>";
} else {
echo "The file $filename does not exist<br><br>";
}
I=B9ve already checked safe_mode which is Off and open_basedir which is=
set =AD same settings as php.ini from before.
Any ideas what might be causing this?
Have you checked phpinfo() to check that the php.ini being loaded is theAny ideas what might be causing this?
one you think is being loaded? Also, are you get any warnings or
notices?
Cheers,
Rob.
--
...........................................................
SwarmBuy.com - http://www.swarmbuy.com
Leveraging the buying power of the masses!
...........................................................
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
accidentally overlooked as well:
1.) Did you restart Apache after making any changes to php.ini or
httpd.conf?
2.) The path is cAsE-sEnSiTiVe. Did you make sure that it's
EXACTLY the same?
3.) Is any part of that symlinked, and if so, does Apache allow
FollowSymLinks?
4.) Is the account jailed or chroot'ed?
--=20
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
Give a man a fish, he'll eat for a day. Then you'll find out he was
allergic and is hospitalized. See? No good deed goes unpunished....
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php