Jump to content

[SOLVED] Unlink Problem


ballouta

Recommended Posts

Hi i have this line of code:

<?php
unlink("/home/simwsim/public_html/mdaouk/one");
?>

when i run the php script, i get this warning and the directory still exisit.

 

Warning: unlink(/home/simwsim/public_html/mdaouk/one) [function.unlink]: Is a directory in /home/simwsim/public_html/CMS/members/unlink2.php on line 15

 

Note that the directory one is empty, and i asked the hosting server about the correct chmod of the directory, they said it sould be 755,

I changed the directory properties mdaouk and its contents(one) to 755 but still the same.

where is my mistake?

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/160161-solved-unlink-problem/
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.