|
Posted by FFMG on 04/18/07 18:28
Toby A Inkster;60934 Wrote:
> 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.
>
>
What?
Access has nothing to do with it.
That is not a solution to the problem I was giving.
I want to use include(...), not @include(...), how can I check if the
file can be included.
FFMG
--
'webmaster forum' (http://www.httppoint.com) | 'webmaster Directory'
(http://www.webhostshunter.com/) | 'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php)
'Free URL redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=13938
Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).
Navigation:
[Reply to this message]
|