[vox-tech] PHP fopen() bug

Dave Peticolas dave at krondo.com
Sun Mar 20 14:22:47 PST 2005


On Sun, 2005-03-20 at 13:07 -0800, Rod Roark wrote:
> On Sunday 20 March 2005 11:22 am, Mark Street wrote:
> > php will 'try' to create the file.  It is up to you to make sure the 
> > underlying OS permissions are such that a file can be created and the 
> > configuration of php is such that a file may be created.
> > 
> > I just tried it on my FC3 box with a local file in the dir, and a file in tmp, 
> > with both modes, w and ab.  No problem.
> > 
> > Look to filesystem permissions/ownership or php.ini
> 
> I believe it's a problem with the version of PHP that
> happens to come with Ubuntu (which BTW is not the very
> latest PHP).  It's definitely not a permissions problem
> since, as I said, it works if you precede the fopen with
> a touch.

Could it be that the php process has read permission
to /tmp but not write permission? I think that would
produce the behavior in question.

dave




More information about the vox-tech mailing list