Posts

Showing posts with the label CGI

Converting XAMPP into XAMPPP

Image
This tutorial explains about a simple method to configure Apache, PHP, MySQL, Perl and Python in windows platform. In this tutorial, I have used the latest operating system (Windows 8.1 Enterprise Edition 64-bit) and latest softwares - XAMPP 1.8.3 and Python 3.3.0. Refer official site of XAMPP and Python for installation instructions. XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. The XAMPP 1.8.3 contains of 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, FileZilla FTP Server, mcrypt, eAccelerator, SQLite, and WEB-DAV + mod_auth_mysql. The default configuration of Apache is perfectly linked with MySQL, PHP and Perl. Since Perl and Python run under common gateway interface (CGI), configuring Python CGI with XAMPP is very easy. To convert XAMPP into XAMPPP, we have to change the existing AddHandler Apache configuration command to AddHa...

Addition using Perl/CGI in Ubuntu

Image
If Apache web server has installed in your system, you can run Perl/CGI script successfully. Create a HTML file and Perl script using following steps. Step 1: Creating a web page add.html 1. Open your console and type: $ sudo gedit /var/www/add.html 2. Copy the lines below in the file and save it. <html> <head> <title>Addition of two numbers.</title> </head> <body> <br><br><br><br><br> <form action='cgi-bin/add.pl' method='post' enctype='multipart/form_data'> <table border='0' align='center'> <tr><td colspan='2' align='center'> <b>Adding Two Numbers</b> </td></tr> <tr> <td>Enter the first value:</td> <td><INPUT TYPE ='text' NAME='n1'></td> </tr> <tr> ...