Post image for Parse .html as PHP with Apache

Parse .html as PHP with Apache

When we install PHP with Apache, Apache will be able parse files with .php extension and execute the same. But in Apache we can tweak configuration in that way so Apache start to parse other file extension as php file.

Post image for Catch Fatal Errors in PHP

Catch Fatal Errors in PHP

In this tutorial we will see how to catch the fatal errors in PHP. Normally we can’t cache FATAL Error because those are FATAL. This will be useful when you want to show specific well formatted error page rather than PHP Error, when your program ends unexpectedly due to some fatal errors.

Post image for Detect an Ajax Request with PHP

Detect an Ajax Request with PHP

In this quick tip article we will see how we can detect AJAX request using PHP. This trick will be very useful and handy when you want the same request to behave differently for AJAX request and normal request.