You are here: Re: Unable to write a file in a directory that my PHP script creates « PHP Programming Language « IT news, forums, messages
Re: Unable to write a file in a directory that my PHP script creates

Posted by ykgoh on 11/16/05 15:44

Hi Gordon. I followed your instruction and things seem to be improving
though not there yet. Basically I set umask(0) before the running mkdir
and it works.

Now the directory shows that it has write permission granted to
everyone. Below is the line I copied after running "ls -la"

drwxrwxrwx 2 www 84 512 Nov 16 21:16 2005_11

It shows that the newly created directory is owned by user "www". And
it has read, write, execute (777) for everyone. But still the file
write operation fails when it tries a fopen("./2005_11/test.txt", "w")

What is still wrong I wonder?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация