26085PHP Debugging with Classhttp://www.webtechniques.com/archives/1999/03/junk/It's hard to debug a CGI program. After all, you're not actually running it (unless your name is httpd). But when those bugs show up, a little creative thinking will help you overcome that limitation. Let's talk about a technique I've found to be very useful for debugging CGI programs written with the PHP scripting language. While the same basic idea could be applied to CGI programs written in other languages, the class extensions to PHP make the process a little more elegant, as well as easy to apply to many CGI scripts without a lot of extra work. (If you're not familiar with PHP, see the box titled " What Is PHP?")PHP > Tips and Tutorials > DevelopmentOct 15, 2006
One of PHP's greatest strengths can also be a great weakness in the wrong hands. I'm talking about its forgiving nature. One of the reasons why PHP has become so wildly popular is because it lets very inexperienced web developers build powerful applications without much planning, consistency, or documentation.
We're adding a new weekly feature to our weekly tech radio show called the php diary and help forum recap which will review the week of diary lessons here and provide a bit more insight than what was provided as well as the occasional glimpse of what's coming in the future to our sites. Of special note
Basic Rules
French Characters in String Literals - UTF-8 Encoding
French Characters in String Literals - ISO-8859-1 Encoding
Chinese Characters in String Literals - UTF-8 Encoding
Chinese Characters in String Literals - GB2312 Encoding
Characters of Multiple Languages in String Literals
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.