Yii does not allow me to unlink a file

Hi community,

I am trying to unlink a file from the images folder but I ran into the following error:


unlink() [<a href='function.unlink'>function.unlink</a>]: cURL does not allow unlinking

I am using the unlink function as below:


unlink("http://mysite.com/images/photos".$this->loadModel()->photo);

Please advise what I am doing wrong

cheers,

b

  1. This is not a Yii-Problem but PHP: unlink()

  2. What do you suppose how a URL should be deleted? :)

  1. What do you suppose how a URL should be deleted? :) Ya lol…fixed it. Thanks anyway

UNLINK THE PATH