I downloaded a webcounter from
http://www.math.sunysb.edu/~shafikov...ing/webcounter. It seems to
be working but I have the following being printed to the page:
Notice: Undefined variable: counter in g:\program files\apache
group\apache\ht docs\dev\webcou nter.php on line 73
Notice: Undefined variable: prefix in g:\program files\apache
group\apache\ht docs\dev\dbclas s.php on line 33
Notice: Undefined variable: mysql_errono in g:\program files\apache
group\apache\ht docs\dev\dbclas s.php on line 43
I thought I didn't even need to declare variables, so why is it complaining?
Here is a small part of the code. I could include more if that helps.
/****** snip *********/
echo 'Begin VAR dump \n';
include_once($d bclasspath);
$counter; <============== === This is one of the lines (73)
$PHP_SELF = $_SERVER['PHP_SELF'];
$REMOTE_ADDR = $_SERVER['REMOTE_ADDR'];
if (basename($PHP_ SELF)=="webcoun ter.php") {
// we are indexing a different file
$source = $_GET['src'];
$tmp = substr($source, 0, 6);
if ($tmp=='http:/' || $tmp=='https:' || $tmp=='ftp://') {
$location=$sour ce;
$rpage = $extra_ext.$sou rce;
}
else {
$location=$root page.$source;
$rpage = $extra_int.$sou rce;
}
webcounter ($ctype,$rpage) ;
header ("Location: $location");
exit;
}
/****** end of snip *********/
http://www.math.sunysb.edu/~shafikov...ing/webcounter. It seems to
be working but I have the following being printed to the page:
Notice: Undefined variable: counter in g:\program files\apache
group\apache\ht docs\dev\webcou nter.php on line 73
Notice: Undefined variable: prefix in g:\program files\apache
group\apache\ht docs\dev\dbclas s.php on line 33
Notice: Undefined variable: mysql_errono in g:\program files\apache
group\apache\ht docs\dev\dbclas s.php on line 43
I thought I didn't even need to declare variables, so why is it complaining?
Here is a small part of the code. I could include more if that helps.
/****** snip *********/
echo 'Begin VAR dump \n';
include_once($d bclasspath);
$counter; <============== === This is one of the lines (73)
$PHP_SELF = $_SERVER['PHP_SELF'];
$REMOTE_ADDR = $_SERVER['REMOTE_ADDR'];
if (basename($PHP_ SELF)=="webcoun ter.php") {
// we are indexing a different file
$source = $_GET['src'];
$tmp = substr($source, 0, 6);
if ($tmp=='http:/' || $tmp=='https:' || $tmp=='ftp://') {
$location=$sour ce;
$rpage = $extra_ext.$sou rce;
}
else {
$location=$root page.$source;
$rpage = $extra_int.$sou rce;
}
webcounter ($ctype,$rpage) ;
header ("Location: $location");
exit;
}
/****** end of snip *********/
Comment