Afficher un message
Vieux 25/03/2008, 23h59   #1
amit
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to delete a file on apache using PHP?


Hi everybody,

I'm trying to remove a file when an upload is complete. Now, if the
file doesn't meet some requriements then must get deleted.

1) The problem is that I'm getting an error as:

PHP Fatal error: Call to undefined function ulink() in /var/www/html/
app/upload.php on line 42


if (!ulink($uploaded_file)) //this line 42 <====
{
error_log("Notice: Couldn't delete file ". $uploaded_file, 0, "/
var/www/html/.../report.log");
}
else
{
error_log("Info: Suspicious file ". $uploaded_file . " removed by
the system.",
}

Thanks.
  Réponse avec citation
 
Page generated in 0,13638 seconds with 9 queries