vani sri Posted February 28, 2009 Share Posted February 28, 2009 Hi all, I tried to delete the file using unlink('http://localhost/xml_files/enq_paathshala.xml'); I got the following error. Warning: unlink() [function.unlink]: http does not allow unlinking When i try to give path like, c:/xampp/htdocs/xml_files/enq_paathshala.xml,it means the file deleted. But i want to delete using http(direct URL). Pls any one help me. Regards, vani Quote Link to comment Share on other sites More sharing options...
ratcateme Posted February 28, 2009 Share Posted February 28, 2009 you cannot delete through http think about it if that were possible someone could go to say send a http delete to http://www.google.com and we would lose Google you need to use file system paths they can be complete like c:/xampp/htdocs/xml_files/enq_paathshala.xml or relative like xml_files/enq_paathshala.xml if you were running a script in c:/xampp/htdocs/ but they must be file system paths also i would strongly advise using full paths so you don't delete anything you want Scott. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.