|
Posted by NC on 02/15/06 07:33
tristan@med.usyd.edu.au wrote:
>
> Recently ive been migrating a PHP4 application build on a fedora
> Linux, to a MacOs10+ with PHP5.
First of all, it pays to remember that MacOS X, when it comes to the
inner workings of the file system, is nothing but a BSD Unix. The "X"
conveniently has two meanings; it's the 10th major release of MacOS,
which also happens to be an X-Window GUI...
> For example both is_executable(), openDir() are returning false when
> the directories are setup and premissions are correct. I can access
> files in a directory but not execute functions on a directoy itself.
In Unix (and, hence, in MacOS X), opening a directory and reading its
contents are operations that require execute privileges. Reading a
file is an operation that requires read privileges. If PHP does not
have execute privileges, this is exactly what you should expect to
happen.
> For instance file_get_contents("/images/1.jpg") will work fine.
> However openDir("/images/") will fail.
Give PHP execute rights on the directory in question...
Cheers,
NC
Navigation:
[Reply to this message]
|