Re: Blank page in browser
| From: | zzapper | Date: | Wed, 18 May 2005 22:27:07 +0000 |
| Subject: | Re: Blank page in browser | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-215539@lists.php.net to get a copy of this message | ||
On Tue, 17 May 2005 11:41:56 +0300, wrote:
>Dear All,
>
>I'm new to PHP programming and I just try to display small information from
>database on web page but its shows blank page. So my code is mention below
>and let me know what's wrong in it but when I execute same program on
>command prompt then its shows all result correctly with HTML Tags
>
I was getting freaked by this , as unknowingly I'd error reporting switched off (in php.ini).
But you can set the following in your code
error_reporting(E_ALL); // switch on full error reporting
.. code
.. code
// Turn off all error reporting
error_reporting(0);
http://uk2.php.net/manual/en/function.error-reporting.php
--
zzapper
vim -c ":%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg?"
http://www.rayninfo.co.uk/tips/ vim, zsh & success
tips