here's one that's stumped me for a week now.
here's a code sample that is placed at the top of numerous HTML pages, before any other code, to selectively check access against a database.
$docheck is a class of functions, working fine.
**********************<?
require("process.php");
$login_check = $docheck->is_logged();
if (!$login_check) {
include("html/logerror.html");
exit;
}
?>
Often it works fine, but other times it shows up in the Browswer as HTML text as follows:
is_logged();
if (!$login_check) {
include("html/logerror.html");
exit;
}
?>
no change in the code at all, but now it's treating the class operative as the end of the php code.
I've checked the include files for leading or trailing spaces and checked each file this code is attached for matched brackets .
The problem is consistant with certain pages, doesn't happen with others.
any ideas what to look for??
Thanks
Dan