Posted by Ashok Kumar on June 6th, 2010
This article describes embedding a Perl script into a Perl script. This program is an Common Gateway Interface, which reads ASCII files through file upload and displays content of the file. The Perl script upload.pl is called through the Perl script file-upload.pl using function eval{ }. This program can be modified to call by reference function, to access in other programs too.
Read the rest of this entry »
Posted by Ashok Kumar on December 16th, 2009
Steps to run JAVA program in Ubuntu:
1. Go to Applications > Accessories > Terminal, to open terminal window.
2. Type the following in command line
gedit Add.java Read the rest of this entry »
Posted by Ashok Kumar on December 14th, 2009
Many people know from their own experience that it’s not easy to install an Apache web server and it gets harder if you want to add MySQL, PHP and Perl.
XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use – just download, extract and start.
At the moment there are four XAMPP distributions:
Read the rest of this entry »
Posted by Ashok Kumar on December 8th, 2009
HTML with PHP :-
HTML: add.htm
<html>
<head>
<title>Adding two numbers</title>
</head>
<body>
<form action=”add.php” method=”post”>
Enter the first number: <input type=”text” name=”a” size=10><br>
Enter the second number: <input type=”text” name=”b” size=10><br>
<input type=”submit” name=”submit” value=”ADD”>
</form>
</body>
</html>
PHP: add.php
<html>
<head>
<title>Adding two numbers</title>
</head>
<body>
<?php
$a=$_POST["a"];
$b=$_POST["b"];
$c=$a+$b;
print “Addition of $a and $b is $c.”;
?>
</body>
</html>
Only with PHP :-
<?php
$a = $_POST["a"];
$b = $_POST["b"];
if (!isset($_POST['add']))
{ // If page is not submitted to itself echo the form
?>
<html>
<head><title>Adding Two Numbers</title></head>
<body>
<form method=”post” action=”<?php echo $PHP_SELF; ?>”>
Enter the first number: <input type=”text” size=”12″ maxlength=”12″ name=”a”></br>
Enter the second number: <input type=”text” size=”12″ maxlength=”36″ name=”b”></br>
<input type=”submit” value=”ADD” name=”add”>
</form>
<?
}
else
{
$c=$a+$b;
print “Addition of $a and $b is $c.”;
}
?>
</body>
</html>
HTML with PHP :-
HTML: add.htm
<html>
<head>
<title>Adding two numbers</title>
</head>
<body>
<form action=”add.php” method=”post”>
Read the rest of this entry »
Posted by Ashok Kumar on December 8th, 2009
[Modem0]
Modem = /dev/rfcomm0
Baud = 115200
SetVolume = 0
Dial Command = ATDT
Init1 = ATZ
Init3= ATM0
FlowControl = CRTSCTS
[Dialer vodafone]
Username = “vodafone”
Password = “vodafone”
Phone = *99#
Stupid Mode = 1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”10.10.1.100:9401″,”portalnmms”,”",0,0
Inherits = Modem0
[Dialer three]
Username = “none”
Password = “none”
Phone = *99#
Stupid Mode = 1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”10.10.1.100:9401″,”portalnmms”,”",0,0
Inherits = Modem0
[Modem0]
Modem = /dev/rfcomm0
Posted by Ashok Kumar on December 4th, 2009
Steps to run C program in Ubuntu:
1. Go to Applications > Accessories > Terminal, to open terminal window.
2. Type the following in command line
sudo gedit first.c Read the rest of this entry »
Posted by Ashok Kumar on December 3rd, 2009
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.
Read the rest of this entry »
Posted by Ashok Kumar on November 30th, 2009
Installing and configuring LAMP (Linux, Apache, MySQL, and PHP) is easy in Ubuntu Linux. If you have internet connection in your system, you can able to download the necessary applications using apt-get or synaptic package manager tools.
In this tutorial, I have given step-by-step procedure to setup LAMP web server environment in Ubuntu 9.10 operating system.
Read the rest of this entry »
Recent Comments