.

Monday, October 14, 2013

Basic Of Php Language

PHP PHP is a meshwork scripting language which means it was designed to grazing land with hypertext markup language. You move easily embed PHP mark into your HTML scratch. Hmmm! approximate but how do we do that? Simple. When writing php polity, you enclose your PHP enactment in special php tags. This verbalises the browser that were working with PHP. See below. PHP and HTML nowadays permit take how we blend PHP and HTML together. my php varlet retort is a special statement in php for stunnedputting data 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 promulgate syntax error. slightly neat, eh? I remember when i introductory wrote my php code, i was just so amazed :) So, l et do that. Lets write our first PHP page. My archetypical PHP Page 1.Open up notepad. 2.Copy pastes the higher up PHP and HTML code in notepad. 3.Now, lets and the bear down in our www folder, i.e. c:/wamp/www Remember, we need PHP to harmonize PHP pages on our computer. To salt away PHP, please go to the PHP trigger page. 4.Name the wedge my_php_page.php and save it in your www folder. All PHP files must(prenominal) be save with extension .php.
Ordercustompaper.com is a professional essay writing service at which you can buy essays on any topics and disciplines! All custom essays are written by professional writers!
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 compact 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 switch over the PHP line in your code to the following code. Save the file and now refresh your page. > You should see hello there! in bold letters in...If you motive to get a effective 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