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:28

Ahmed Abdel-Aliem wrote:
> i have a problem with deleting files, i use windows XP and installed
> on it apache server & PHP 5.1
> i use unlink($file) to delete files but it doesn't work while it works
> fine on my webhosting which is on linux machine
> is there another function to use to delete files under windows instead
> of link ??

The webserver needs to have permission to modify the file that you are
trying to delete. Check the file and directory permissions by
right-clicking the directory and going to properties. You will probably
need to give the user that controls apache either "full" or "modify"
permissions to the Web directory.

In general, permission settings under Windows suck.

--
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

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