[vox-tech] PHP fopen() bug
Josh Parsons
jbparsons at ucdavis.edu
Sun Mar 20 09:46:07 PST 2005
On Sun, 2005-03-20 at 07:28 -0800, Rod Roark wrote:
> $fh = fopen('/tmp/test', 'w');
>
> always fails with a "no such file or directory" error. It
> doesn't seem to matter what the path is.
>
> What DOES work is:
>
> touch('/tmp/test');
> $fh = fopen('/tmp/test', 'w');
>
> Has anyone heard of such a thing? How can such a basic
> problem exist in a distribution that's been out for almost
> six months? Yes, I have all the latest updates.
This is more likely to be php's fault than that of the distribution.
(though you might check the permissions of /tmp). Have you read through
php.ini and checked that the security settings (safe_mode, etc.) are set
as you want them?
--
Josh Parsons
Philosophy Department
1238 Social Sciences and Humanities Bldg.
University of California
Davis, CA 95616-8673
USA
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
More information about the vox-tech
mailing list