Quick PHP tutorial



 Quick PHP tutorial











Sample of the pdf document :











PHP script may be embedded within HTML documents

– meaning PHP and HTML code can both happily co-exist in the same file. All embedded PHP code must be contained within <?php and ?> tags so it can be readily recognized by the PHP engine for interpretation. Typically the PHP code will write content into the body section of the HTML document, which is then sent to the web browser.

1: Launch a plain text editor and create this valid barebones HTML5 document with an empty body section
<!DOCTYPE HTML>
<html lang=“en”>
<head><meta charset=”UTF-8”>
<title>Getting Started With PHP</title></head>
<body>
</body>
</html>


2: Insert tags into the body section to contain PHP code<?php?>

3: Now insert between the PHP tags a descriptive comment and a line of code to write content into the body section
# Write the traditional greeting.echo ‘<h1>Hello World!</h1>’ ;









 Click here for  Download PDF / FREE

 Quick PHP tutorial

0 commentaires: