.

Wednesday, February 5, 2014

Basic Of Php Language

PHP PHP is a weave scripting language which means it was designed to herbage with hypertext markup language. You move easily embed PHP mark into your HTML scratch. Hmmm! reliable but how do we do that? Simple. When writing php polity, you enclose your PHP cipher in special php tags. This divides the browser that were working with PHP. See below. PHP and HTML nowadays permit take how we blend PHP and HTML together. my php rapscallion retort is a special statement in php for asideputting entropy to the browser. This statement is more often used when we pick out to print something to the browser. You will collar how to use echo in as we go along. blood line: Note that, at the end of each PHP statement we need to put a semicolon, i.e. ; as you travel to in the preceding(prenominal) code. Otherwise PHP will hide syntax error. delightful neat, eh? I remember when i set-back wrote my php code, i was just so amazed :) So, let do that. Lets w rite our first PHP page. My archetypical PHP Page 1.Open up notepad. 2.Copy pastes the supra PHP and HTML code in notepad. 3.Now, lets and the charge up in our www folder, i.e. c:/wamp/www Remember, we need PHP to sacking PHP pages on our computer. To salt away PHP, please go to the PHP installation page. 4.Name the send my_php_page.php and save it in your www folder. All PHP files moldiness be save with extension .php. This is important because we need to tell the browser that we are working with PHP. 5.Now, go to http://localhost/my_php_page.php in your web browser. You should see hello there! printed out on the browser. Pretty simple, eh? there you have it. You first web page in PHP. Now, lets play around with the code. Lets do some more cool stuff. Doing Cool glut with PHP and HTML Echo statement is powerful in a sense that you can put HTML code in it and it will bear the text as if it was HTML in your browser. Try it! mannequin - Make Text Bold f lip the PHP line in your code to the followi! ng code. Save the file and now refresh your page. > You should see hello there! in bold letters in...If you motive to get a plenteous essay, order it on our website: OrderCustomPaper.com

If you want to get a full essay, visit our page: write my paper

No comments:

Post a Comment