Using Windows ? Don’t Kill Yourself
Supose you are Linux user and you have a Windows system.
Alternatives: Cygwin, Mingw or Colinux
You need some (or all) of this interpreters:
Perl, PHP, Python and Ruby
Modify the %PATH%
Example you have a bin dir, on C:\ to include the executables on the %PATH% do this:
On Windows Vista, you can use your mouse:
computer > properties > Advances system settings > (continue) > Advanced > Enviroment Variables > System Variables > Path (edit)
Example run Kompozer on cmd.exe but no modify %PATH%
: kompozer.bat save on %WINDIR%
@"C:\Program Files\Kompozer\kompozer.exe"
Doble click on your scripts to run:
: Perl Scripts
assoc .pl=Perl.File
ftype Perl.File=C:\strawberry\perl\bin\perl.exe "%1" %*
set PATHEXT=%PATHEXT%;.pl
: Python Scripts
assoc .py=Python.File
ftype Python.File=C:\Python26\python.exe "%1" %*
set PATHEXT=%PATHEXT%;.py
Note:
On Windows Vista you need run cmd.exe as Administrator don’t work as normal user
Apache, PHP and MySQL ?
XAMPP and Server2Go
Notes:
XAMPP: simple, quick and easy install.
Server2Go: is great to make CD demo of a Web Application.
Using Perl or Python as CGI on Windows ?
Using Python 2.6
Using Strawberry Perl:
#!\strawberry\perl\bin\perl.exe
Now your script works on http://localhost/cgi-bin/script.cgi