skip to Main Content

PHP Chmod function not workiing – CPanel

Whenever I try to delete a file from my cpanel folder from my webpage using this code $oldFile = @mysql_result(mysql_query("SELECT SUBSTR(`materialLink`, 27) FROM `documents` WHERE `iddocuments` = '$iddoc'"),0, `materialLink`); $chmod = "0777"; chmod($oldFile,octdec($chmod)); $oldFile = 'https://www.edutopia.co.ke'.$oldFile; if(isset($_POST['Fild'])){ $msg1 = '<script…

VIEW QUESTION
Back To Top
Search