#22065 [Opn->Fbk]: file() function

From: Date: Wed, 05 Feb 2003 16:41:22 +0000
Subject: #22065 [Opn->Fbk]: file() function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32201@lists.php.net to get a copy of this message
ID: 22065 Updated by: iliaa@php.net Reported By: paul.d.rowlands@delphi.com -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Windows 2000 server PHP Version: 4.3.0 New Comment: Do you have open_basedir or safe_mode enabled? Previous Comments: ------------------------------------------------------------------------ [2003-02-05 02:48:23] paul.d.rowlands@delphi.com Error log fills with warnings abount the file() function. Apache 2.0/34 Using php module version 4.3.0 rather than cgi. Errors.log shows:- [05-Feb-2003 08:33:45] PHP Warning: file(d:/temp/ht1/050203.ht1) [<a href='http://www.php.net/function.file'>function.file</a>]: failed to create stream: Permission denied in d:\Apache Group\Apache2\htdocs\fa_tools_ht.php on line 103 Code:- if(file_exists($file1)==FALSE) die("File1 does not exist"); if(is_readable($file1)==FALSE) die("File1 not readable"); // parse files into arrays $file_array1=file($file1); //WARNING HERE if($file_array1==null) die("Permission denied to open file"); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22065&edit=1

« previous php.bugs (#32201) next »