Iseng cari cara menjalankan python di XAMPP Windows, setelah googling bisa juga. Sekedar share dan update blog :D.
Bahan :
1. XAMPP 1.8.2
2. Python 3.4
Langkah :
1. Install Python
2. di file /apache/conf/httpd.conf cari AddHandler cgi-script .cgi .pl .asp tambahkan .py jadi AddHandler cgi-script .cgi .pl .asp .py
3. Buat file tes.py di htdocs/python
#!C:\XAMPP\Python3.4\python
print ("Content-Type: text/html")
print ("")
print ("Coba Python.'")
Bahan :
1. XAMPP 1.8.2
2. Python 3.4
Langkah :
1. Install Python
2. di file /apache/conf/httpd.conf cari AddHandler cgi-script .cgi .pl .asp tambahkan .py jadi AddHandler cgi-script .cgi .pl .asp .py
3. Buat file tes.py di htdocs/python
#!C:\XAMPP\Python3.4\python
print ("Content-Type: text/html")
print ("")
print ("Coba Python.'")