02-26-2018, 06:54 PM
RESOLVED I think
z_us_root.php somehow got deleted
error_log - about a million copies of:
[26-Feb-2018 21:26:22 Africa/Cairo] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/uykg22pvt0en/public_html/users/admin_pagesmk1.php on line 32
[26-Feb-2018 21:26:22 Africa/Cairo] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /home/uykg22pvt0en/public_html/users/admin_pagesmk1.php on line 33
so issue is in
$file = fopen($abs_us_root.$us_url_root."z_us_root.php","r");
while(!feof($file)){
$currentLine=str_replace(" ", "", fgets($file));
if (substr($currentLine,0,5)=='$path'){
//echo $currentLine;
//if here, then it found the line starting with $path so break to preserve $currentLine value
break;
}
}
z_us_root.php somehow got deleted
error_log - about a million copies of:
[26-Feb-2018 21:26:22 Africa/Cairo] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/uykg22pvt0en/public_html/users/admin_pagesmk1.php on line 32
[26-Feb-2018 21:26:22 Africa/Cairo] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /home/uykg22pvt0en/public_html/users/admin_pagesmk1.php on line 33
so issue is in
$file = fopen($abs_us_root.$us_url_root."z_us_root.php","r");
while(!feof($file)){
$currentLine=str_replace(" ", "", fgets($file));
if (substr($currentLine,0,5)=='$path'){
//echo $currentLine;
//if here, then it found the line starting with $path so break to preserve $currentLine value
break;
}
}