zardiw
Perch
Lately, when there is an error in a PHP page, I get a totally blank page returned.......no errors are indicated/shown.
This is happening only recently........before, errors generated were shown on the web page.
Needless to say this makes debugging a tad difficult.
In the following script, the file is not found, But a totally blank page is rendered with nothing in it.
Partial Code Below:
This is happening only recently........before, errors generated were shown on the web page.
Needless to say this makes debugging a tad difficult.
In the following script, the file is not found, But a totally blank page is rendered with nothing in it.
Partial Code Below:
Code:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//3.2">
<HTML>
<HEAD>
<TITLE>Amanda Import Shell Data</TITLE>
<META NAME="Generator" CONTENT="FlexSite 2.8">
<META NAME="Author" CONTENT="FlexSite 2.8">
</HEAD>
<BODY TEXT="#000000" LINK="#0000ff" VLINK="#00ffaa"
ALINK="#576000"
BGCOLOR="#FFFF99" BISHOPRICS="FIXED" >
<?
function my_error_handler ($errno, $errstr, $errfile, $errline, $errcontent) {
echo "<font color='red'><b>An Error Occured!</b></font><br>";
echo "<b>Error Number:</b> $errno<br>";
echo "<b>Error Description:</b> $errstr<br>";
echo "<b>Error In File:</b> $errfile<br>";
echo "<b>Error On Line:</b> $errline<br>";
}
set_error_handler("my_error_handler");
//==============================================
include "DDSpyCon.php";
$filename = "Shells1.csv";
$count = 0;
$fd = fopen ($filename, "r") or die("Unable to open file!");
$ExpFilLine = fgets($fd);
$ExpFilLine = fgets($fd);
$ExpParts = explode(",", $ExpFilLine);
$CurrSymb = $ExpParts[0];
print_r('First One -' . $CurrSymb);