mirror of
https://github.com/cesanta/mongoose.git
synced 2025-06-12 04:32:55 +08:00
added
This commit is contained in:
parent
ab147e8f19
commit
89fae72aa7
34
docs/BasicWebsite.md
Normal file
34
docs/BasicWebsite.md
Normal file
@ -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`:
|
||||
|
||||

|
||||
|
||||
## 2. Inside `my_website` directory, create a new file called "index". This will be the default web page shown when the website is visited.
|
||||
|
||||

|
||||
|
||||
## 3. Open index file with your favorite editor (for example, Notepad) and enter some HTML code:
|
||||
|
||||

|
||||
|
||||
## 4. Save this file as `index.html`:
|
||||
|
||||

|
||||
|
||||
|
||||
## 5. Download Mongoose executable from http://cesanta.com/downloads.html and copy the executable inside `my_website` directory:
|
||||
|
||||

|
||||
|
||||
## 6. Double-click mongoose executable. An icon will appear on a system tray in the bottom right corner of the desktop:
|
||||
|
||||

|
||||
|
||||
## 7. Click on the mongoose icon and choose "Start browser" menu:
|
||||

|
||||
|
||||
## 8. A browser will popup displaying `index.html` file. Now, you can expand your website by adding more content.
|
||||
|
||||

|
19
docs/FileSharing.md
Normal file
19
docs/FileSharing.md
Normal file
@ -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:
|
||||
|
||||

|
||||
|
||||
## 2. Double-click mongoose executable. An icon will appear on a system tray in the bottom right corner of the desktop:
|
||||
|
||||

|
||||
|
||||
## 3. Click on the mongoose icon and choose "Start browser" menu:
|
||||

|
||||
|
||||
## 4. A browser will popup displaying files. That's all! To access those files from another computer, start a browser and type `http://<your_machine_ip_address>:8080/` in the address bar.
|
||||
|
||||

|
||||
|
||||
## 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
|
49
docs/PhpWebsite.md
Normal file
49
docs/PhpWebsite.md
Normal file
@ -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`:
|
||||
|
||||

|
||||
|
||||
## 2. Inside `my_website` directory, create a new file called "index". This will be the default web page shown when the website is visited.
|
||||
|
||||

|
||||
|
||||
## 3. Open index file with your favorite editor (for example, Notepad) and enter some HTML / PHP code:
|
||||
|
||||

|
||||
|
||||
## 4. Save this file as `index.php`:
|
||||
|
||||

|
||||
|
||||
|
||||
## 5. Download Mongoose executable from http://cesanta.com/downloads.html and copy the executable inside `my_website` directory:
|
||||
|
||||

|
||||
|
||||
## 6. Double-click mongoose executable. An icon will appear on a system tray in the bottom right corner of the desktop:
|
||||
|
||||

|
||||
|
||||
## 7. Download PHP 5.3 zip file from http://windows.php.net/download and extract it to `C:\php5` directory:
|
||||

|
||||
|
||||
## 8. Click on the mongoose icon and choose "Edit Settings" menu.:
|
||||

|
||||
|
||||
## 9. A settings dialog will appear. Click on `cgi_interpreter` button:
|
||||
|
||||

|
||||
|
||||
## 10. Choose `C:\php5\php-cgi.exe` and click "Save Settings":
|
||||
|
||||

|
||||
|
||||
## 11. Click on the mongoose icon and choose "Start browser" menu:
|
||||

|
||||
|
||||
|
||||
## 12. A browser will popup displaying `index.php`.
|
||||
|
||||

|
Loading…
Reference in New Issue
Block a user