Jump to content

Archived

This topic is now archived and is closed to further replies.

vani sri

Warning: unlink() [function.unlink]: http does not allow

Recommended Posts

Hi all,

 

I tried to delete the file using

 

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.