Menu
As one new to PHP, I’d like to install a PHP sandbox on my Windows system.
Today, I learned of WAMP and XAMPP.
What are the advantages/disadvantages of each?
Alternatives?
Have you taken a look at this table?http://en.wikipedia.org/wiki/Comparison_of_WAMPs [/QUOTE]
Apache, MySQL, PHP + PEAR, Perl, mod_php, mod_perl, mod_ssl, OpenSSL, phpMyAdmin, Webalizer, Mercury Mail Transport System for Win32 and NetWare Systems v3.32, Ming, JpGraph, FileZilla FTP Server, mcrypt, eAccelerator, SQLite, and WEB-DAV + mod_auth_mysql. [/QUOTE]
- Apache 2.2.11
- MySQL 5.1.33
- PHP 5.2.9-2
[/QUOTE]
WAMP also includes phpMyAdmin and support for SQLite and OpenSSL. The mod_php is simply the Apache module for running PHP scripts, and is also part of WAMP. Of the other things you listed for XAMPP, the only ones that stand out to me are Perl support and the Mercury Mailer stuff, as well as Filezilla FTP server. Unless you know that you have a need for those, I wouldn't sweat it, particularly since you can download and install any of them separately if and when you need them. (For that matter you can download and install everything these packages give you; they just make your life a lot simpler.)
As far as disk space, my WAMP directory currently contains about 140MB, and that includes some MySQL data files (pretty small right now) and a couple project directories (again, relatively small at the moment).[/QUOTE]
Many of the special-purpose functions available with PHP require that certain extensions be installed, many of those requiring 3rd party libraries. At the one extreme, all you need to use PHP is PHP. Apache is only needed if you want to run your PHP scripts as web pages (and you could use Windows IIS instead if you prefer). MySQL is only needed if you want to use that particular DBMS (you could use SQLite instead, PostgreSQL, etc. -- or no DMBS, that's your implementation decision to make). mcrypt is not needed unless you want to use the PHP mcrypt functions; the same with OpenSSL, etc., etc., and so forth.[/QUOTE]
I realize that this could be done with Javasript...[/QUOTE]
You won't be able to do it with javascript. JS is client side so all of the source code is available to the user. Besides this, javascript has no access to the filesystem so even if you ran it as server side js you couldn't control files with it. PHP is definitely the way to go with this.[/QUOTE]
You could also use[url=http://php.net/sqlite]SQLite[/url] , which is an "embedded" database server (doesn't require that any separate DBMS application be installed on the host). It does, however, require that the PHP installation includes support for the SQLite extension.[/QUOTE]
For something as simple as a hit counter I'd just stick with a plain flat file.[/QUOTE]
0.1.9 — BETA 5.18