ID:               21958
 User updated by:  ct at swin dot edu dot au
 Reported By:      ct at swin dot edu dot au
-Status:           Feedback
+Status:           Open
 Bug Type:         Filesystem function related
 Operating System: Tru64 UNIX 5.1A
 PHP Version:      4.3.1-dev
 New Comment:

# ls -ld /web /web/ct
drwxr-xr-x 110 root     system      8192 Nov 28 15:41 /web
drwxr-xr-x   7 ct       system      8192 Jan 31 15:22 /web/ct


Previous Comments:
------------------------------------------------------------------------

[2003-02-19 18:57:04] [EMAIL PROTECTED]

What are the permissions for /web and /web/ct directories?


------------------------------------------------------------------------

[2003-01-30 18:49:02] ct at swin dot edu dot au

With php4-STABLE-latest (200301302230) it returns the following error:

Warning: fopen() [function.fopen]: Unable to access
/web/ct/tmp/file.txt in /web/ct/test4.php on line 4

Warning: fopen(/web/ct/tmp/file.txt) [function.fopen]: failed to create
stream: No such file or directory in /web/ct/test4.php on line 4

------------------------------------------------------------------------

[2003-01-30 09:17:22] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



------------------------------------------------------------------------

[2003-01-30 00:01:42] ct at swin dot edu dot au

PHP 4.2.3 configured in safe mode cannot create new files.

$fname = "/web/ct/tmp/file.txt";
$filePtr = fopen($fname,"w");


Warning: Unable to access /web/ct/tmp/file.txt in /web/ct/test4.php on
line 4

Warning: fopen("/web/ct/tmp/file.txt", "w") - No such file or directory
in /web/ct/test4.php on line 4

The permissions on the directory are:

drwxrwxrwx   2 root     system      8192 Jan 30 16:42 tmp

If the file /web/ct/tmp/file.txt already exists, PHP can open it for
writing.


PHP 4.1.2 can successfully create files using the same configuration.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=21958&edit=1

Reply via email to