Return to Snippet

Revision: 2162
at January 7, 2007 01:57 by assbach


Initial Code
#complete serverpath must be given like 
#example "/apache/htdocs/myfile.pdf" ( not "http:xyz.com/myfile.pdf" )
$DelFilePath = $setup["serverWebrootPath"] . $fileName;

# delete file if exists
if (file_exists($DelFilePath)) { unlink ($DelFilePath); }

Initial URL

                                

Initial Description

                                

Initial Title
Delete File from Server if exists

Initial Tags
files

Initial Language
PHP