Home • About • FAQs • News • Random Expert Selector • Random Question Selector • Contact Us • 

Top Level >

Internet Technology

Mr Mike Metcalf
How is PHP used?

Discuss this question
Discuss Answer

PHP must first be installed on the server you wish to host your websites on. Visit php.org for more info. Next your HTML file must be renamed .php

Finally, PHP has a specific language and is inserted into HTML by use of . Example that prints "hello world" and uses a variable:

$toprint = "hello world";
print $toprint;

Mr Taylor Dewey
(Expert Rating 274)
   Member has an expert rating of 200+
 Top of Page Terms and Conditions Privacy Disclaimer

© Simply Explained