Can't create new object
Posted by: Dan (---.wi.res.rr.com)
Date: January 14, 2006 08:28PM

When I create the instance of the an object, the browser shows a bunch of question marks and weird characters. At times the weird characters that are spit out are appended to pieces of my actual code (like its html not script).

PAGE1 - login.php (file is in the root dir)
<?php

// includes
include ("classes/clsSession.php"winking smiley;

// create sessions
$objSession = new clsSession;

?>



PAGE2 - clsSession.php (file is inside a classes folder in the root dir)

<?php

class clsSession{

}

?>



php_error.log
[14-Jan-2006 13:12:36] PHP Fatal error: Class 'clsSession' not found in C:\wamp\www\login.php on line 7



Output Shown in Browser:
&#25148;&#8306;&#15919;&#15370;&#15970;&#24902;&#24948;&#8300;&#29285;&#28530;&#15474;&#25135;&#14910;†&#27715;&#29537;&#8307;&#25383;&#29548;&#25939;&#29555;&#28521;&#10094;&#28192;&#29807;&#26144;&#30063;&#25710;&#26912;&#8302;&#25148;&#17214;&#23610;&#24951;&#28781;&#30556;&#30583;&#27740;&#26479;&#28265;&#28718;&#28776;&#12092;&#15970;&#28448;&#8302;&#26988;&#25966;&#15392;&#15970;&#15415;&#25135;&#15422;&#29282;&#12064;&#2622;

WAMP5 Version 1.6.0

Any suggestions for fixing this?


Sorry, only registered users may post in this forum.