Changes

Jump to: navigation, search

OPS335 Lab 5

659 bytes added, 22:48, 28 March 2016
LAMP
We'll replace our '''index.html''' file with an '''index.php''' with the following contents:
 
<pre>Hello, this is a web page on vm4.yourid.org and the current time is <?php system("date"); ?>!</pre>
 
Notice that in a web browser the index.php file isn't treated as a default page and the contents don't contain the date, but instead have exactly the text above. That's because the PHP interpreter isn't installed by default on CentOS. Install it. The package comes with a working default Apache configuration so you don't need to enable it manually.
 
Refresh the page, notice that you now see the date instead of the call to the date command. This is a trivial example of dynamic web content - it doesn't need to be the same every time you look at it.
== MySQL ==

Navigation menu