You are here: Re: Really hardcore question about PHP needed :) « PHP Programming Language « IT news, forums, messages
Re: Really hardcore question about PHP needed :)

Posted by Toby A Inkster on 04/18/07 16:06

FFMG wrote:
> Toby A Inkster;60885 Wrote:
>> FFMG wrote:
>>
>> > Why is file_exists(...) alone not a good option.
>> > How would you check if a file exists for inclusion.
>>
>> include_path
>
> no.
> Doesn't always work.

Well, if you may want to check it's readable, as permissions may prevent
PHP from reading the file. You could also run "php -l" on the sile using
system() to check for syntax errors in the file first.

--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!

 

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

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