Apache web server - 593Chapter 32DebuggingIn that syntax, type has one of

593Chapter 32DebuggingIn that syntax, type has one of four possible values: 0: The message is handled according to the setting of error_login php.ini. 1: The message is sent by SMTP electronic mail to the address specified by the destina- tion parameter. 2: The message is referred to a remote debugger. 3: The message is added to the end of the file specified by the destination parameter. The following code shows several possible uses for error_log(): In php.ini, error_logis normally not set to anything it s commented out by default. Ifyou want to use the 0option to do anything, you ll have to modify the error_logsetting tosomething like this: error_log = syslogwhich causes error_log()to be the equivalent of syslog(3)on Linux (and thus also thePHP syslog()function) and to write events to the Event Viewer under Microsoft Windows. Alternately, the error_logvalue can equal a filename: error_log = c:logsphp.logVisual Debugging ToolsIf you re going to be doing a lot of development work, you might consider buying a commer- cial integrated development environment (IDE) for PHP. Though these can cost a couple ofhundred U.S. dollars or more, they can earn their keep by saving you time and making possi- ble the more efficient creation of working software. This section focuses on a highly respected and widely used commercial IDE called ZendDevelopment Environment (yes, it s from the same Zend Technologies as puts out the ZendEngine that runs PHP). You can read its specifications (and download a free 21-day demon- stration version, if you register) at www.zend.com. Figure 32-3 shows the Zend IDE in use.
From our experience, we can recommend PHP5 Web Hosting services, if you need affordable webhost to host and run your web application.

Leave a Reply