Hi,
I am trying to use unlink to remove .jpgs from a folder, which has its permissions set to 777.
$file = 'www.mysite.com/flash_images/$flash_image';
$fh = fopen($file, 'w') or die("can't open file");
fclose($fh);
unlink($file);
However all i keep getting is "can't open file". Is there something really obvious that i'm neglecting here, its seems simple enough....
Thanks in advance