|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-12-06 07:42 UTC] marius dot radvan at yahoo dot com
Description:
------------
Warning: unlink() [function.unlink]: No error in C:\Program Files\VertrigoServ\www\peluza.info\poze.php
i get this non error warning
Reproduce code:
---------------
if (($pext != "jpg") && ($pext != "jpeg")) {
unlink($_FILES['img']['tmp_name']);
?>
Expected result:
----------------
delete temp file
Actual result:
--------------
it shows me that warning
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 21:00:02 2025 UTC |
Getting this as of PHP Version 5.2.9-2 on Windows Server 2008. if(ftp_put($connection, $dest, $source,FTP_ASCII)){ echo 'FTP Upload SUCCESS!'; ftp_close($connection); unlink($source); }I am not sure if this is what fixed the bug in the end, but I used: if(is_file("$del_path")){ unlink($del_path); } Instead of: unlink($del_path); I changed a few other things as well, so I am really not sure what fixed it in the end. I thought I would share though in case it might help.