I have __autoload() function and it works fine on localhost but causes error on server:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@mudre-izreke.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I really dont know what I'm doing wrong :S
Here is autoload() function:
function __autoload($className) {
// search util class
if(file_exists(F_DIR.'lib/util/'.$className.'.class.php')) {
// include file
require_once(F_DIR.'lib/util/'.$className.'.class.php');
return;
}
}
I tried it on my server an 2 free hosts and it doesnt work.. but on localhost it works :S