Using Windows ? Don’t Kill Yourself
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:
1 | set PATH=%PATH%;C:\bin\ |
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%
1 2 | : kompozer.bat save on %WINDIR% @"C:\Program Files\Kompozer\kompozer.exe" |
Doble click on your scripts to run:
1 2 3 4 5 6 7 8 | : 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
1 | #!\python26\python.exe |
Using Strawberry Perl:
1 | #!\strawberry\perl\bin\perl.exe |
Now your script works on http://localhost/cgi-bin/script.cgi



Recent Comments