vikela Posted November 17, 2009 Share Posted November 17, 2009 I developed a small php application and is running perfect on my local xampp server.The problem is that when i uploaded to the online(internet) server everything is not alright.I have been trying to configure the online (internet)server but no success yet.For example the following simple code.. <?php //session_start(); //error handler function function customError($errno, $errstr) { echo "<b>Error:</b> [$errno] $errstr<br />"; echo "Ending Script"; die(); } //set error handler set_error_handler("customError",E_ALL); //trigger error $prove=5; if ($prove>1) { trigger_error("Value must be 1 or below",E_ALL); } ?> is producing something like this... Error: [$errno] $errstr "; echo "Ending Script"; die(); }//set error handlerset_error_handler("customError",E_ALL);//trigger error$prove=5;if ($prove>1) { trigger_error("Value must be 1 or below",E_ALL); } >: Link to comment https://forums.phpfreaks.com/topic/181832-server-and-php/ Share on other sites More sharing options...
ngreenwood6 Posted November 17, 2009 Share Posted November 17, 2009 try this: <?php //session_start(); //error handler function function customError($errno, $errstr) { echo "<b>Error:</b> [".$errno."] ".$errstr."<br />"; echo "Ending Script"; die(); } //set error handler set_error_handler("customError",E_ALL); //trigger error $prove=5; if ($prove>1) { trigger_error("Value must be 1 or below",E_ALL); } ?> Link to comment https://forums.phpfreaks.com/topic/181832-server-and-php/#findComment-958954 Share on other sites More sharing options...
vikela Posted November 17, 2009 Author Share Posted November 17, 2009 now its showing a blank page.. Link to comment https://forums.phpfreaks.com/topic/181832-server-and-php/#findComment-958976 Share on other sites More sharing options...
trq Posted November 17, 2009 Share Posted November 17, 2009 Place this in a script and upload it. <?php phpinfo(); ?> What does it output? Link to comment https://forums.phpfreaks.com/topic/181832-server-and-php/#findComment-958978 Share on other sites More sharing options...
vikela Posted November 17, 2009 Author Share Posted November 17, 2009 its showing me the php server configuration settings its a PHP Version 5.2.9. Link to comment https://forums.phpfreaks.com/topic/181832-server-and-php/#findComment-958989 Share on other sites More sharing options...
trq Posted November 17, 2009 Share Posted November 17, 2009 Ok, is the code you have posted the exact code your using then? Link to comment https://forums.phpfreaks.com/topic/181832-server-and-php/#findComment-958998 Share on other sites More sharing options...
vikela Posted November 17, 2009 Author Share Posted November 17, 2009 yes Link to comment https://forums.phpfreaks.com/topic/181832-server-and-php/#findComment-959012 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.