The following code works when test.jpg is hardcoded: (commented out)
<?php
//$myfile = "test.jpg";
echo $myfile;
$myfile = $_GET['id'];
unlink($myFile);
?>
When I pass test.jpg as a variable:
http://www.datatracksoftware.com/eden/datashow/f1/testdelete.php?id=test.jpg
I get the following error:
test.jpg (it echos OK)
Warning: unlink() [function.unlink]: No such file or directory in /hermes/bosweb/web223/b2235/sl.datatrac/public_html/eden/datashow/f1/testdelete.php on line 5
Thanks in advance for your help,
~Steve