You are here: to control if unlink worked good « PHP Language « IT news, forums, messages
to control if unlink worked good

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?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация