11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

www.it-ebooks.infoC H A P T E R 1• • •Introducing <strong>PHP</strong>In many ways the <strong>PHP</strong> language is representative of the stereotypical open source project, created tomeet a developer’s otherwise unmet needs and refined over time to meet the needs of its growingcommunity. As a budding <strong>PHP</strong> developer, it’s important you possess some insight into how the languagehas progressed, because it will help you to understand the language’s strengths as well as the reasoningbehind its occasional idiosyncrasies.Additionally, because the language is so popular, having some understanding of the differencesbetween the versions—most notably versions 4, 5, and 6—will help when evaluating Web hostingproviders and <strong>PHP</strong>-driven applications for your own needs.To help you get up to speed quickly in this regard, this chapter will cover <strong>PHP</strong>’s features andversion-specific differences. By the conclusion of this chapter, you’ll have learned the following:• How a Canadian developer’s Web page traffic counter spawned one of the world’smost popular programming languages.• What <strong>PHP</strong>’s developers did to reinvent the language, making version 5 the bestversion yet.• How <strong>PHP</strong> 5.3 is going to further propel <strong>PHP</strong>’s adoption in the enterprise.• Which features of <strong>PHP</strong> attract both new and expert programmers.• Caution A great deal of confusion has arisen from the <strong>PHP</strong> development team’s perhaps overly ambitiousdecision to work on <strong>PHP</strong> 6 alongside <strong>PHP</strong> 5, with the former intended to add Unicode support and the latter addingseveral key features such as namespaces. In March 2010, the team decided to primarily focus on advancing <strong>PHP</strong>5, placing much less emphasis on a forthcoming version 6. While I’ve no doubt version 6 will eventually bereleased, at the time of this writing you should devote your efforts to building websites which work best with the5.X series.HistoryThe origins of <strong>PHP</strong> date back to 1995 when an independent software development contractor namedRasmus Lerdorf developed a Perl/CGI script that enabled him to know how many visitors were readinghis online résumé. His script performed two tasks: logging visitor information, and displaying the countof visitors to the web page. Because the Web at the time was still a fledgling technology, tools such as1

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

Saved successfully!

Ooh no, something went wrong!