| Posted On: 27 Apr, 2009 |
The key to understanding something is to know how it got to where it is currently, and PHP is no different in that respect - it has a long history full of key design decisions and changes to the language. The history of web development is even longer - this section will cover both.
| Posted On: 27 Apr, 2009 |
If you are not new to PHP, I still recommend you at least glance over the contents of this chapter. I find that programming in PHP is very often like playing my guitar. I can be sitting in my study strumming idly on my 12-string like I've done thousands of times before, only this time I play a different chord sequence, or strums the strings in a different manner than normal, and I think "Hey, that's cool... how come I never found that before?"
At various points in my PHP programming past, I have stumbled across functions or functionality in pretty much the same way, and responded with pretty much the same response! If you're the same, then definitely read on – it doesn't hurt to see what's on offer.
| Posted On: 27 Apr, 2009 |
The base of the PHP language is very simple, having just enough to set and retrieve variables, work with loops, and check whether a statement is true or not. The real power behind PHP comes with its extensions – add-ons to the base language that give it more flexibility. There are hundreds of extensions to PHP, and they can be broken down into five distinct types: core, bundled, PECL, third party, and DIY.
| Posted On: 27 Apr, 2009 |
- Whitespace
- Escape sequences
- Heredoc syntax
- Brief introduction to types of data
- Code blocks
- Opening and closing code islands
- Commenting your code
- Conditional statements
- Case switching
- Loops
- Infinite loops
- Special loop keywords
- Loops within loops
- Mixed-mode processing
- ncluding other files
| Posted On: 27 Apr, 2009 |
You can execute your scripts in one of two ways: through a web server where the output is a web browser, or through the command line where the output is the command line itself. Of the two, the former is much more popular, but the latter is steadily growing in popularity.
| Posted On: 27 Apr, 2009 |
The PHP Extension and Application Repository, or PEAR for short contains code written by other programmers to achieve various goals. The concept is simple: other programmers, usually specialists in their areas, write very complicated code, and present it to you in an easy-to-use form, thereby enabling you to create very powerful scripts using just a few simple commands.
| Posted On: 27 Apr, 2009 |
It hasn't taken Web developers long to discover that when it comes to creating dynamic, database-driven Web sites, MySQL and PHP provide a winning open source combination. Add this book to the mix, and there's no limit to the powerful, interactive Web sites that developers can create.
| Posted On: 27 Apr, 2009 |
In just a few years PHP has rapidly evolved from a small niche language to a powerful web development tool. Now in use on over 14 million Web sites, PHP is more stable and extensible than ever. However, there is no documentation on how to extend PHP; developers seeking to build PHP extensions and increase the performance and functionality of their PHP applications are left to word of mouth and muddling through PHP internals without systematic, helpful guidance.
| Posted On: 27 Apr, 2009 |
As a PHP developer, you have some great tools for developing web applications. Ruby on Rails is another key tool to add to your web development toolbox. Rails is a high-level web development framework that emphasizes high productivity and clean code. However, the Ruby language and Rails framework take a different approach from the way many PHP developers write applications.
| Posted On: 27 Apr, 2009 |


