Re: PHP newbie: I love it, but...
| From: | Miles Thompson | Date: | Thu, 08 May 2003 22:43:31 +0000 |
| Subject: | Re: PHP newbie: I love it, but... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146925@lists.php.net to get a copy of this message | ||
Jean,
Does your ISP have all error reporting turned off? Some do.
Or, if it's a server under your control you can set eror reporting levels in php.ini.
Here are a couple of suggestions:
1. Manual - error reporting section: http://ca3.php.net/manual/en/ref.errorfunc.php
2. Use of the phpinfo(); function
3. Custom .htaccess file in your web site's home directory. This turns on error reporting:
php_flag display_errors on Save the above line in a file named htaccess, upload it to the directory where you are running PHP scripts and rename it to .htaccess. It will "disappear", but Apache will then return errors generated when PHP scripts are parsed.And, I've assumed a *nix host running Apache. If your host is running IIS I'm certain someone else on the list can help. BTW, your ISP should also be able to assist with these questions. Cheers - Miles Thompson At 08:32 AM 5/8/2003 -0700, Jean wrote:
PHP is a very nice language. Been about a week reading O'Reilly & writing my first program. Making some fast progress. But, as I embellish my program, I am beginning to run into trouble. I am finding PHP to be extremely difficult to debug. There's a limit to embedding echo to check the program flow. Then, there are times when the browser shows absolutely nothing. Browser's Show Source Code lists next to nothing; I assume this is because the interpreter hung on a missing brace or something and outputted nothing! Until I become good at spotting my errors, I've got to find a debugging tool. Any words of wisdom would be appreciated. Jean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php