Home
» Knowledge base » PHP is not giving output ?
PHP is showing any error information ?
Recently upgraded my php but I am not getting any output ?
PHP is not giving output ?
PHP is showing any error information ?
Recently upgraded my php but I am not getting any output ?
7 June 2004, 10:04 am IST
User Rating: 7.2 (91 votes)
If PHP is not outputting anything or if you think any error infomation should be displayed, but is not then it might be that your display_errors setting may be turned off.
If you have access to php.ini, then locate the entry:
display_errors = On
and make sure it is set to On
In case you don't have access to the php.ini file, you can write the following code on the first line of php file:
<?php ini_set('display_errors', '1'); ?>
If you are still not getting any output, you may also add the following line, just below the above code:
error_reporting(E_ALL);
Topics
- Apache (2)
- Javascript (1)
- PHP (5)
- Windows (3)
About
Amit Arora is web developer with expertise in developing eCommerce enabled websites for the businesses.
Monitored by Site24x7
Uptime