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 »
Recent Comments