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

AppServ link

PHP sample files download

[13/08/2012]
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 192.168.0.10 .
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 111.222.123.1:6001 will forward to LAN IP 192.168.0.10:6001 and
all the packets from 111.222.123.1:6002 will forward to LAN IP 192.168.0.20:6002. (Two different LAN IP addresses!)

Reminder:
  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.

[14/08/2012]
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.