PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
include("/conf/modules/authorize/main.php.inc");
$auth = new mod_authorize;
And this leads to an error, I don't know the exact message because .php file is used as a template handler, so I simply get clear-page.
Everything works without $auth = new mod_authorize;
It means that the class could not be found in the file.
why dont you post your code mate???
if you have defined the class in a separate file; make sure you include the name of the file properly in the file where you instantiate an object of the class you defined.
<?
include_once("http://antropogeon.loresit.com/conf/modules/authorize/main.php.inc");
$some = new mod_authorize();
echo $some->show();
?>
That's all code. I get error: "Fatal error: Cannot instantiate non-existent class: mod_authorize in /home/loresit/public_html/antropogeon/test.php on line 5"