O'Reilly logo

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition by Larry Ullman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding PHP, HTML, and White Space

Before I get any further into the depths of using PHP to send HTML and other data to the Web browser, it’s important to fully comprehend the PHP process. With PHP you can send data (a combination of HTML tags and text) to the Web browser, which will, in turn, display it as the Web page the end user sees. Thus, what you are doing with PHP is creating the HTML source of a Web page. Pictorially, this means PHP is generating the HTML in Figure 1.6 (accessed by choosing View > Source or View > Page Source in your browser), which the Web browser will turn into Figure 1.7.

Figure 1.6. You’ll use PHP to generate the HTML source of a Web page (like this)…
Figure 1.7. …which the Web browser ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required