Changes

Jump to: navigation, search

OPS335 Lab 5

254 bytes added, 14:10, 30 March 2016
no edit summary
<ol><li value="79">Refresh your web-page by issuing the keycombination: '''ctrl-r'''. Notice that the time doesn't change as you refresh the page. This indicates that the page is static (not dynamic) indicating that the page does not change (i.e. boring!).</li></ol>
=== Creating a PHP File ===
<pre>Hello, this is a web page on vm4.yourid.org and the current time is <?php system("date"); ?>!</pre>
<ol><li value="2">On your host machine, again refresh your web-browser. 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 are displaying the text in the php code you entered into the index.php file (refer to above code).</li><li>The reason this occurs is that the PHP interpreter hasn't been installed on your Centos vm vm4 by default.</li><li>Install the php packeage on your vm4 machine. NOTE: The php package comes with a working default Apache configuration so you don't need to enable it manually.</li><li>Refresh the page, webpage for your web-browser on your host machine. You should now notice that you now see the date instead of the call to the date command. Refresh your webpage several times to see how the time changes. This is simply a "trivial example " of dynamic web content - does it doesn't need does provide a simple demonstration of how scripting languages can be used to be the same every time you look at itcreate more dynamic webpages.</li></ol>
=== Install, Configure and Run MySQL Database Server ===
13,420
edits

Navigation menu