Open main menu

CDOT Wiki β

Changes

OPS345 Lab 3

695 bytes added, 04:15, 2 January 2022
Make a proper PHP webpage
== Make a proper PHP webpage ==
OPS345 is not a web development course, but you should learn a couple of basic things about websites. # An HTML page (which is what your php file generates) really should follow a basic set of rules, even though technically it doesn't have to. The example below is a correctly structured HTML file.# While PHP is primarily used by programmers, you can make good use of it too. In the example below it's used to query your instance's metadata that AWS has but the instance itself does not. * make proper Replace your current contents of /var/www/html page/index.php with this:<source>
<html>
<head>
</html>
</source>
* No need to restart anything after you modify a webpage. Just reload it in Firefox. It should look like this:
 
[[File:AWSMetadataViaPHP.png|border|center]]
= Remove public IP from the web server =