In the above image may be seen the folder structure on your computer when you have installed Server2Go. It includes one extra folder because I copied htdocs and renamed the old one htdocs_old. Once you’ve familiarised yourself with the opening screen I suggest you do the same and then we can start writing our own PHP files without losing the original setup.

Open a text editor and type this line:-

<? phpinfo(); ?>

Save the file as info.php to the folder htdocs. When you refresh the browser screen you ought so see a page that says Index Of with the name of your file listed below as info.php. If you click the file name the screen should fill with information something like below:-

This is of course almost utterly meaningless but its sole purpose is to demonstrate that your installation of Server2Go is functional.


Go to the folder htdocs referred to earlier.  Copy the following text between the lines and save it as index.html in the folder htdocs then run Server2Go again or refresh the page see what happens.


<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

<h2>HTML Tables</h2>

<p>HTML tables start with a table tag.</p>
<p>Table rows start with a tr tag.</p>
<p>Table data start with a td tag.</p>

<hr>
<h2>1 Column:</h2>

<table border=1>
<tr>
<td>100</td>
</tr>
</table>

<hr>
<h2>1 Row and 3 Columns:</h2>
<table border=1>
<tr>
<td>100</td>
<td>200</td>
<td>300</td>
</tr>
</table>

<hr>
<h2>3 Rows and 3 Columns:</h2>
<table border=1>
<tr>
<td>100</td>
<td>200</td>
<td>300</td>
</tr>
<tr>
<td>400</td>
<td>500</td>
<td>600</td>
</tr>
<tr>
<td>700</td>
<td>800</td>
<td>900</td>
</tr>
</table>

<hr>

</body>
</html>

You ought to get something like the image below, if you don’t keep trying until you do.

The above was taken from the very clear and concise HTML example web page https://www.w3schools.com/html/html_examples.asp but that’s as far as I’m going with that because this series is intended to demonstrate the capabilities of PHP/MySQL not HTML.

Leave a Reply