You are here: Re: Mac Os 10 + « PHP Programming Language « IT news, forums, messages
Re: Mac Os 10 +

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация