|
|
|
Home Credits Affliates Link Exchange HTMLshaman PHPshaman LINUXshaman Helpful Links Web Design Images Backgrounds Icon Sets GIF Images |
Introduction What better way to start the session with an introduction to what a php file really is and what it isn't. our many encounters with people who not no knowledge to php gave us an impression that they thought that php is an language that will be used entirely throughout a php file or script. This assumption is however entirely or to most extents a wrong view of the situation. PHP is a language built for the WEB environment and that it can be considered the active part of the script whereas HTML will be the static part of it. Meaning to say, PHP will do things like adding values after a user inputs them and HTML will be used as a base for it to be displayed. And thus for most small scripts, PHP takes up a very small portion of the entire bulit up and HTML takes up the bulk of it. For example: <html> <body> <?php $text = "I love Marshmellows"; ?> $text because they are <b>sweet</b> and nice over a roasting fire!<br> </body> </html> This will print "I love Marshmellows because they are sweet and nice over a roasting fire! As you can see from the above, anything enclosed in the <?php ... ?> is the php coding and in this case we entered a "string" or value into the $text telling it to store the value "I love Marshmellows" and then in the HTML background getting it to display as a normal text. Therefore, in a .php file, your web server will understand that it anything is not in the <?php ... ?> it will read as basic HTML and anything in it will need to be processed by the already installed PHP engine.
|
| Our Recommended Links |
|
|
Contact us at webmaster@galacnet.com for advertising opportunities on GalacNet. |