Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

open_basedir and is_readable
open_basedir exhibits very annoying (and imho buggy) behavior in
generating warnings even when is_readable() is called, rather than
just returning false as appropriate. This means it is impossible to
use is_readable as a precondition before opening a file.

Is there any way to check the preconditions of reading a file without
generating warnings for files outside open_basedir?

Report this thread to moderator Post Follow-up to this message
Old Post
Arancaytar
02-06-08 01:00 PM


Re: open_basedir and is_readable
On Feb 6, 2:26=A0pm, Arancaytar <arancaytar.ilya...@gmail.com> wrote:
> open_basedir exhibits very annoying (and imho buggy) behavior in
> generating warnings even when is_readable() is called, rather than
> just returning false as appropriate. This means it is impossible to
> use is_readable as a precondition before opening a file.
>
> Is there any way to check the preconditions of reading a file without
> generating warnings for files outside open_basedir?

Addendum: http://bugs.php.net/bug.php?id=3D37476 describes this behavior.

Report this thread to moderator Post Follow-up to this message
Old Post
Arancaytar
02-06-08 01:00 PM


Re: open_basedir and is_readable
Arancaytar pisze:
> On Feb 6, 2:26 pm, Arancaytar <arancaytar.ilya...@gmail.com> wrote: 
>
> Addendum: http://bugs.php.net/bug.php?id=37476 describes this behavior.

I'm posting this just in case anyone looked for a quick solution: use
@is_readable.

--
CKFinder :: ajax web file browser
http://www.ckfinder.com

Report this thread to moderator Post Follow-up to this message
Old Post
Wiktor Walc
03-19-08 01:01 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 01:37 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.