As my grandfather always says, "If you want something done right, do it yourself." However, these days you often have to rely on third-party tools to help you get your job done. To serve even a simple, static HTML Web page you need to rely on your Web server, which in turn relies on your operating system, and so on. While you can't create all these programs yourself, most of the ones that you rely on?your Web server, for example?provide an API to help you extend and add functionality to these programs, so if they don't meet your needs you can always modify them.
PHP?or more properly the PHP Hypertext Preprocessor?lets you easily create dynamic Web sites by embedding code into the Web page (HTML) itself. This open-source software is very popular on the Web where open-source products like Apache and Perl predominate. While PHP offers considerable power as a scripting language, its true power lies in the fact that if it doesn't offer what you need, you can easily extend it with either C or C++. To extend PHP 4, you need to understand the PHP API (more specifically the Zend API, since PHP 4 is powered by the Zend Engine).
You probably feel like banging holes in your desk with your coffee mugs some mornings after spending a decent few hours just to find that you forgot a silly semi-colon or closing brace
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?")
There?s a single line you can add to your web host?s control panel that will automatically archive your content. LISTEN CLOSELY AND YOU?LL HEAR THE OCEAN, Ever run commands in DOS? You?ve used a shell. A ?shell? in the computer world is a place where you enter commands and run files by name rather than clicking around different windows.
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.