Jump to content

Unlink error


techker

Recommended Posts

hey guys is there a way to fix getting an error 500 with unlink?

 

simple script.

$file = $_GET['File'];

    //chdir('/admin/uploads/big/'); 
    $do = unlink($file); 
    if($do=="1"){ 
        echo "The file was deleted successfully."; 
    } else { echo "There was an error trying to delete the file."; } 

Link to comment
https://forums.phpfreaks.com/topic/196286-unlink-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.