Debug PHP API function using output to a file
Add ob_start(); function from where you want to put output to a file Use following function to get output of code execution : $contents = ob_get_contents(); Put the content to a file:
Read More...Add ob_start(); function from where you want to put output to a file Use following function to get output of code execution : $contents = ob_get_contents(); Put the content to a file:
Read More...Step 1 – Installing Apache Update the package list for upgrades and new packages: sudo apt-get update Now Apache can be installed. sudo apt-get install apache2 Step 2 – Installing MySql Install
Read More...Add following lines in PHP file: ini_set(‘display_errors’, 1); ini_set(‘display_startup_errors’, 1); error_reporting(E_ALL);
Read More...If you want to run some PHP code on live website and don’t want to show it’s effect to others if($_SERVER[“REMOTE_ADDR”]==’122.123.123.12′){ // Your PHP code } Eg. : if($_SERVER[“REMOTE_ADDR”]==’122.180.87.84′){ die(“Just for testing”);
Read More...