-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
I use the following to delete a file on a webserver

        if( unlink( "./$filename" ) )
        {
                echo $filename." deleted ";
                $action='';
                echo
"<script>document.location.href='$PHP_SELF?action=$action&code=$code'</script>";
        }

But I get the following error
Warning: unlink(./6 November 2009.pdf): No such file or directory in
/srv/www/htdocs/bee_partners/admin/tenders.php on line 82 6 November
2009.pdf not deleted

Any help?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAksNBV4ACgkQGgk1S8edB3JqWgCfb61pxGvh+KCXNfNdWgF2kb/P
xCMAn2dSOgN9AiFYX35Ga00XyxZQwGnw
=NL6k
-----END PGP SIGNATURE-----

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to