You are here: Re: Can't Delete File Using Unlink « PHP « IT news, forums, messages
Re: Can't Delete File Using Unlink

Posted by Ben Ramsey on 04/11/05 21:49

Ahmed Abdel-Aliem wrote:
> chmod("files/".$this->File_Name, 777);

I'm not really sure how chmod() works on Windows. Someone else here may
be able to answer that. However, I do know that chmod() expects an octal
as the second argument, so you must prefix that 777 with a 0. It should be:

chmod("files/".$this->File_Name, 0777);

See here for more info: http://us2.php.net/chmod

Like I said, I'm not sure whether this is the cause of the problem, but
give it a shot and see what happens. :-)

--
Ben Ramsey
http://benramsey.com/

 

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

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