| Home | See http://www.php.net/docs.php for complete PHP programming documentation. |

Tutorial: Test PHP Web Pages Offline Using Uniform Server

By Howard Charles Best, May 12, 2006

(LLBest.com, )

Note: This implementation of the Apache server is called the Uniform Server. Like “XAMPP for Windows,” it is completely “portable,” in other words, no installation is required, and it will even work on a flash drive.

Note: This tutorial assumes that extensions for known file types are not hidden. (1. Click Start. 2. Click Computer. 3. Click Organize. 4. Click Folder and search options…. 5. Click the View tab. 6. Make sure that Hide extensions for known file types is unchecked. 7. Click OK. 8. Close the Computer window.)

These instructions should work on any stand-alone (no Internet connection necessary once the software is downloaded) Windows 98 or later computer, but so far I've only tested them on a Windows XP computer. They assume that the extensions for known file types are not hidden. (1. Click “Start / My Documents.” 2. Click “Tools / Folder Options….” 3. Click the “View” tab. 4. Make sure that “Hide extensions for known file types” is unchecked.)

1. Go to http://sourceforge.net/projects/miniserver/, click “Download Uniform Server” and download the “Latest” self-extracting version of “Uniform Server” to your desktop. (Right now it’s a 7368165 byte (7.02 MB) file called “UniServer3_5.exe.”)

2. Double-click the “UniServer….exe” icon. (It should say “7Z” on it.)

3. Extract it to your desktop.

4. A folder named “Uniform Server” will be created on your desktop.

5. “UniServer….exe” may now be deleted.

6. Move the “Uniform Server” folder to an appropriate place in your “My Documents” folder. (On my Windows XP laptop, I moved it to “C:\Documents and Settings\Me\My Documents\Installed\Uniform Server,” so that’s the example we’ll use from now on.)

7. Using Notepad, create a text file called “ServStart.bat” on your desktop, and put the following into it:

8. Create another desktop text file, this one called “ServStop.bat” containing the following:

9. Double click the “ServStart.bat” icon.

10. You should be redirected to the “http://localhost/apanel/” web page. (If it doesn’t load at first, try clicking your browser’s reload button.)

11. Using Windows Explorer, navigate to the “C:\Documents and Settings\Me\My Documents\Installed\Uniform Server\udrive\home\admin” folder.

12. Right click on the “www” folder, drag it to your desktop, and create a shortcut.

13. Double click the “www” folder.

14. Create a new folder called “test.”

15. Double click the “test” folder.

16. Using Notepad, create a text file called “index.php” in the “test” folder, and put the following into it:

17. Click: http://localhost/apanel/test/.

18. “PHP Example #1” should appear in the middle of your web browser window!

19. “Bookmark” it, or save it as one of your “Favorites.”

| Home | THIS WEB PAGE URL: http://LLBest.com/?P=48 |