Using PHP to Provide Database-Driven Content to Web Pages

You might be wondering whether writing your own web applications from scratch is the only way to include database-driven content in your dynamic pages, or if there’s a better and cleaner way, analogous to using Microsoft’s ASP or Adobe/Macromedia’s ColdFusion. The answer is yes, there is. It’s called PHP, which originally stood for “Personal Home Page” but now is itself the official name of an open-source HTML preprocessing framework that has become very widely used throughout the UNIX web-hosting world. PHP’s official website is http://www.php.net.

PHP consists of commands that can be embedded into HTML, and they are parsed out in much the same way that server-side includes are parsed ...

Get FreeBSD6 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.