Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unlink function in PHP running on Windows - does not work

Status
Not open for further replies.

webslinga

Programmer
Jun 20, 2006
55
US
Hey all,
I am trying to remove a file using PHP that was moved from a local machine to a server location. The PHP version is 5.0.x and it's running on a Windows OS. Why will this not work?

I've also saw some sites stating that PHP no longer supports the unlink() for WIndows users after PHP 4.x. Is that true, and if so, please suggest an alternative. Thanks much.
 
Does not work" is pretty vague, do you get an error?
How are you issuing the command?

The only thing I can think off is maybe a permission issue, does the user as which PHP/the webserver runs have rights to the folder where the file is located?

And no unlink has not been deprecated, if anything its has been enhanced.




----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top