diff --git a/docs/BasicWebsite.md b/docs/BasicWebsite.md new file mode 100644 index 00000000..206c95d7 --- /dev/null +++ b/docs/BasicWebsite.md @@ -0,0 +1,34 @@ +How To Create A PHP Website With Mongoose +=========================================== + +## 1. Create a directory which will contain your website files. For example, on drive `C:\`, create a directory called `my_website`: + +![screenshot](../images/tut_basic/tut1.png) + +## 2. Inside `my_website` directory, create a new file called "index". This will be the default web page shown when the website is visited. + +![screenshot](../images/tut_basic/tut2.png) + +## 3. Open index file with your favorite editor (for example, Notepad) and enter some HTML code: + +![screenshot](../images/tut_basic/tut3.png) + +## 4. Save this file as `index.html`: + +![screenshot](../images/tut_basic/tut4.png) + + +## 5. Download Mongoose executable from http://cesanta.com/downloads.html and copy the executable inside `my_website` directory: + +![screenshot](../images/tut_basic/tut5.png) + +## 6. Double-click mongoose executable. An icon will appear on a system tray in the bottom right corner of the desktop: + +![screenshot](../images/tut_basic/tut6.png) + +## 7. Click on the mongoose icon and choose "Start browser" menu: +![screenshot](../images/tut_basic/tut7.png) + +## 8. A browser will popup displaying `index.html` file. Now, you can expand your website by adding more content. + +![screenshot](../images/tut_basic/tut8.png) diff --git a/docs/FileSharing.md b/docs/FileSharing.md new file mode 100644 index 00000000..dcdcf56f --- /dev/null +++ b/docs/FileSharing.md @@ -0,0 +1,19 @@ +How To Share Files With Mongoose +=========================================== + +## 1. Download Mongoose executable from http://cesanta.com/downloads.html and copy the executable inside the directory you want to share: + +![screenshot](../images/tut_sharing/tut1.png) + +## 2. Double-click mongoose executable. An icon will appear on a system tray in the bottom right corner of the desktop: + +![screenshot](../images/tut_sharing/tut2.png) + +## 3. Click on the mongoose icon and choose "Start browser" menu: +![screenshot](../images/tut_sharing/tut3.png) + +## 4. A browser will popup displaying files. That's all! To access those files from another computer, start a browser and type `http://:8080/` in the address bar. + +![screenshot](../images/tut_sharing/tut4.png) + +## Tip: to find out what is your machine IP address, take a look at http://windows.microsoft.com/en-us/windows/find-computers-ip-address diff --git a/docs/PhpWebsite.md b/docs/PhpWebsite.md new file mode 100644 index 00000000..605e03ec --- /dev/null +++ b/docs/PhpWebsite.md @@ -0,0 +1,49 @@ +How To Create A PHP Website With Mongoose +=========================================== + +## 1. Create a directory which will contain your website files. For example, on drive `C:\`, create a directory called `my_website`: + +![screenshot](../images/tut_php/tut1.png) + +## 2. Inside `my_website` directory, create a new file called "index". This will be the default web page shown when the website is visited. + +![screenshot](../images/tut_php/tut2.png) + +## 3. Open index file with your favorite editor (for example, Notepad) and enter some HTML / PHP code: + +![screenshot](../images/tut_php/tut3.png) + +## 4. Save this file as `index.php`: + +![screenshot](../images/tut_php/tut4.png) + + +## 5. Download Mongoose executable from http://cesanta.com/downloads.html and copy the executable inside `my_website` directory: + +![screenshot](../images/tut_php/tut5.png) + +## 6. Double-click mongoose executable. An icon will appear on a system tray in the bottom right corner of the desktop: + +![screenshot](../images/tut_php/tut6.png) + +## 7. Download PHP 5.3 zip file from http://windows.php.net/download and extract it to `C:\php5` directory: +![screenshot](../images/tut_php/tut7.png) + +## 8. Click on the mongoose icon and choose "Edit Settings" menu.: +![screenshot](../images/tut_php/tut8.png) + +## 9. A settings dialog will appear. Click on `cgi_interpreter` button: + +![screenshot](../images/tut_php/tut9.png) + +## 10. Choose `C:\php5\php-cgi.exe` and click "Save Settings": + +![screenshot](../images/tut_php/tut10.png) + +## 11. Click on the mongoose icon and choose "Start browser" menu: +![screenshot](../images/tut_php/tut11.png) + + +## 12. A browser will popup displaying `index.php`. + +![screenshot](../images/tut_php/tut12.png)