XAMPP Portable 1.6.8 link
(Use the old version because it is using PHP 5.2.6)

AppServ link

PHP sample files download

If you want to allow others from outside to access your server, you can config your router and set "port forwarding" to your server.
The idea can be explained by the following figure:
external image port_forward01.gif
You can find the LAN IP of your server by typing cmd-->ipconfig.
For example, the IP of your server is .
You can NOT give this LAN IP to your friend to access your server as it is your LAN but not WAN!
In order to do so, you can set your router to "forward packets from different ports to different servers/computers".
From the above figure, all the packets from will forward to LAN IP and
all the packets from will forward to LAN IP (Two different LAN IP addresses!)

  1. Don't forget to edit the file apache\conf\httpd.conf
    Set the listen port and server port from 80 to other port number and restart your server!
  2. You can ask your friends to test it or you can use your 3G mobile phone to access the server.
  3. Don't forget to put a sample html file in the directory htdocs.

It is really an interesting network stuff. For more detail, click here.

Note: If you find that your Apache or MySQL servers do not run normally, turn off the firewall.

I have found out the problem of the login demo finally. The problem is the demo doesn't work under the new version of PHP in XAMPP 1.8.2.
I try to run it under AppServ and XAMPP 1.6.8 and it works fine.
You can try to install AppServ in your computer (but not your flashdrive). You will find a folder www. Put all the web page contents inside www (just like htdocs in XAMPP).

Here is the login demo: download

In order to run this demo, you need to
  1. Create a database "members" with table "account". Table "account" has 3 fields: en_name, userid and pwd. The type of these 3 fields are VARCHAR. SQL file: here
    (you may need to edit the SQL inside "login_chk_new.php" and "main_new.php")
  2. Create some test data.
  3. Edit the file "sql_connect.php" with correct "login name","password" and the "database selected".
  4. Type login.htm under the localhost in the browser and you can try it.
  5. If you can login successfully, you can see your name in the welcome page. The demo ends here.