Jump to content

unlink() function , not working


dannybrazil

Recommended Posts

Hello

I have been trying for hours but cant do it...

 

I have a site that users are allowed to upload photos and delete them if they want to

 

the file path is saved as  a FULL link the the file : http://www.mysite.com/lib/file.jpg

 

now what I understood is that with this code :


$file = $_POST['file'];


               if(unlink($file))
	         {

			 mysql_query("UPDATE class SET $photo_number=NULL WHERE id=$id ");


			}    

but instead I get this message :

 

Warning: unlink() [function.unlink]: http does not allow unlinking in /home/rgajsgjb/public_html/classimoveisrn/hebrew/delete_photo.php on line 32

 

Any help ?

 

 

Link to comment
https://forums.phpfreaks.com/topic/194233-unlink-function-not-working/
Share on other sites

Archived

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

×
×
  • 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.