کد PHP:
function delete_file($path='')
{
if(file_exists($path))
{
@unlink($path);
return 'delete file ok' ;
}
return 'not found';
}
// usage
delete_file('./img.png');
delete_file('./pic/img.png');
کد PHP:
function delete_file($path='')
{
if(file_exists($path))
{
@unlink($path);
return 'delete file ok' ;
}
return 'not found';
}
// usage
delete_file('./img.png');
delete_file('./pic/img.png');
در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)