INST 377 Lecture 3: INST377 Lecture 3: PHP

28 views2 pages

Document Summary

With php, it"s a simple matter to embed dynamic activity in web pages. When you give pages the . php extension, they have instant access to the scripting language. From a developer"s point of view, all you have to do is write code such as the following: Outside of this construct, everything is sent to the client as direct html. So the text here"s the latest news. is simply output to the browser; within the php tags, the built-in date function displays the current day of the week according to the server"s system time. The final output of the two parts looks like this: today is wednesday. Php is a flexible language, and some people prefer to place the php construct directly next to php code, like this: There are also other ways of formatting and outputting information, which i"ll explain in the chapters on php.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents