13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6 Introduction<br />

Source Code<br />

You have access to <strong>PHP</strong>’s source code.With <strong>PHP</strong>, unlike commercial, closed-source<br />

products, if you want to modify something or add to the language, you are free to do so.<br />

You do not need to wait for the manufacturer to release patches.You also don’t need<br />

to worry about the manufacturer going out of business or deciding to stop supporting a<br />

product.<br />

Availability of Support <strong>and</strong> Documentation<br />

Zend Technologies (www.zend.com), the company behind the engine that powers <strong>PHP</strong>,<br />

funds its <strong>PHP</strong> development by offering support <strong>and</strong> related software on a commercial<br />

basis.<br />

The <strong>PHP</strong> documentation <strong>and</strong> community are mature <strong>and</strong> rich resources with a<br />

wealth of information to share.<br />

What Is New in <strong>PHP</strong> 5?<br />

You may have recently moved to <strong>PHP</strong> 5 from one of the <strong>PHP</strong> 4.x versions. As you<br />

would expect in a new major version, it has some significant changes.The Zend engine<br />

beneath <strong>PHP</strong> has been rewritten for this version. Major new features are as follows:<br />

n<br />

n<br />

n<br />

Better object-oriented support built around a completely new object model (see<br />

Chapter 6,“Object-Oriented <strong>PHP</strong>”)<br />

Exceptions for scalable, maintainable error h<strong>and</strong>ling (see Chapter 7,“Error <strong>and</strong><br />

Exception H<strong>and</strong>ling”)<br />

SimpleXML for easy h<strong>and</strong>ling of XML data (see Chapter 33,“Connecting to <strong>Web</strong><br />

Services with XML <strong>and</strong> SOAP”)<br />

Other changes include moving some extensions out of the default <strong>PHP</strong> install <strong>and</strong> into<br />

the PECL library, improving streams support, <strong>and</strong> adding SQLite.<br />

At the time of writing, <strong>PHP</strong> 5.2 was the current version, with <strong>PHP</strong> 5.3 on the near<br />

horizon. <strong>PHP</strong> 5.2 added a number of useful features including:<br />

n The new input filtering extension for security purposes<br />

n JSON extension for better JavaScript interoperability<br />

n File upload progress tracking<br />

n Better date <strong>and</strong> time h<strong>and</strong>ling<br />

n Many upgraded client libraries, performance improvements (including better<br />

memory management in the Zend Engine), <strong>and</strong> bug fixes<br />

Key Features of <strong>PHP</strong> 5.3<br />

You may have heard about a new major release of <strong>PHP</strong>, called <strong>PHP</strong> 6. At the time of<br />

this writing, <strong>PHP</strong> 6 is not in the release c<strong>and</strong>idate stage, <strong>and</strong> hosting providers won’t be

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!