Posted by den on 03/02/07 10:46
if ( file_exists($file) )
{
unlink($file);
}
for to control if the deleted is executed correctly is
obligatory write this:
if ( file_exists($file) )
{
unlink($file);
if ( file_exists($file) ) { alert of file not deleted}
}
or there is better solution ?
is also possible intercept the type of error?
generally for which reasons does not come executed the elimination?
[Back to original message]
|