(The absolute paths are edited.)Warning: Cannot modify header information - headers already sent by (output started at /*****/TripPhotos/config.php:21) in /*****/TripPhotos/delete.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /*****/TripPhotos/config.php:21) in /*****/TripPhotos/delete.php on line 12
Unauthorized access...
I was able to locate the problem code (lines 11 and 12 in delete.php and upload.php, the error lines, are bolded). It is:
Once that code was removed, the upload/delete scripts work fine.if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $LOGIN) && ( $PHP_AUTH_PW == "$PASSWORD" )) ) {
header("WWW-Authenticate: Basic entrer=\"Form2txt admin\"");
header("HTTP/1.0 401 Unauthorized");
error("Unauthorized access...");
}
Please explain exactly what code to implement/remove, etc... I have no real knowledge of PHP and therefore need an answer explained in newbie language, please
By the way... one of my files got chmodded to 000 somehow... not sure how. So I can't delete it using Cpanel's file editor. Any suggestions?
Thanks in advance!