finding compile time errors



As I'm learning PHP, I'm making a fair number of mistakes in syntax.

In perl, you can turn on reading these errors from the browser by adding this:

use CGI::Carp 'fatalsToBrowser';

Is there something like this in PHP?

Or do I need to find the php.ini file and look to see where the error log is?

I spent some time trying to figure out why my class constructor crashed until I found that I was writing php5 on a php4 setup. What is most of the established base, is it 4 or 5? I see in the php docs that some examples use 5.3, considering that the latest stable release is 5.2 I can see how there might be a lot of hair lost!

Any recommendations on creating form elements? I've always used CGI.pm which handles all the gotchas. Is there anything that comes with the standard php install? All I really need is radio, select, checkbox and text... I'm used to writing what I need, but I'm also used to not reinventing a wheel that was written by someone far smarter!


Is there a standard include_path being used? Are there any standard extensions for included libararies, generally I'd like them to be seen *only* by the parent script.



Jeff
.



Relevant Pages

  • Re: [PHP] moving over to php 5
    ... When the developer benefits from something being "more standard" and ... more secure, then he'll change. ... your hands in the air and hoping PHP, PDO, magic_quotes, etc, etc will ...
    (php.general)
  • Re: AJAX problem
    ... Thanks for the response. ... "Beginning Ajax with PHP." ... Gregor's comment was a more-or-less standard response when one doesn't ... They part of my list on how to recognize bad Javascript.) ...
    (comp.lang.javascript)
  • Re: Standard PHP library, PEAR, and templates
    ... > Is the standard php library exclusively for PHP5 or is there one for PHP4? ... I think it is only available in php 5. ... Allot of pear libraries are php 4 and 5 compatible. ...
    (comp.lang.php)
  • RE: [PHP] Standard Address Book?
    ... Subject: [PHP] Standard Address Book? ... for a PHP/SQL/XML addressbook? ... PHP General Mailing List ...
    (php.general)
  • Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)
    ... scripts behave as if they were not recognized. ... standard index.html file in a directory, called a browser and the page ... ran the browser again. ... So in other words it seems as if the "php" page was not properly ...
    (php.general)