PHP self-learning

Learning PHP Notes

Boring websites are static. Interesting websites are dynamic—that is, their content changes. A giant static HTML page listing the names, pictures, descriptions, and prices of all 1,000 products a company has for sale is hard to use and takes forever to load.

A dynamic web product catalog that lets you search and filter those products so you see only the six items that meet your price and category criteria is more useful, faster, and much more likely to close a sale.

The PHP programming language makes it easy to build dynamic websites. Whatever interactive excitement you want to create—whether it be as a product catalog, a blog, a photo album, or an event calendar—PHP is up to the task. And after reading this book, you’ll be up to the task of building that dynamic website, too.

PHP commands that your programs can use to make decisions.

As you write more complicated programs, you'll find yourself wanting to repeat similar tasks. Functions help you reuse pieces of your programs.

The PHP engine reads the file yak.php from the disk drive.

The PHP engine runs the commands in yak.php, possibly exchanging data with a database program such as MySQL.

PHP is Free (as in Money

No licensing fees, no support fees, no maintenance fees, upgrade fees, or any other kind of charge.

PHP is Built for Web Programming

Unlike most other programming languages, PHP was created from the ground up for generating web pages.

This means that common web programming tasks:

Accessing form submissions Talking to a database

are often easier in PHP

Unlike most other programming languages, PHP was created from the ground up for generating web pages.

This means that common web programming tasks:

Accessing form submissions Talking to a database

are often easier in PHP.

PHP comes with the capability to format HTML, manipulate date and times, and manage web cookies. Tasks that are often available only via add-on libraries in other programming languages.

Back to top

Index