Moazam - 2009-01-02 00:33:10
Hello,
I have been facing a fatal error in my web application. I am wondering if anyone can here give me the solution without using require_once or include_once.
here is the code
/*class: myapp.php*/
if(!defined('ACONST')) {
require("loader.php");
exit;
}
class myapp {
}
/*file: loader.php*/
require("myapp.php");
If you call myapp.php, web server will restart and in apache log you will see this error can't redeclare class myapp.php
is there any way to stop preventing php execution at end of the file?