<html>
<head>
<title>first php page</title>
</head>
<body>
hi there!<br>
<?php
//declearing variables
$myInteer = 5 ;
$myFloat = 55.63 ;
$myString = "Into the wild" ;
$todaysDate = date("m/d/y");
$firstName = "Dipen" ;
$lastName = "lama";
$Name = $firstName ." ". $lastName;
echo "Hey!<br>";
echo $firstName . " ". $lastName . "<br>";
echo $Name;
echo "The date was";
echo date("m/d/Y");
echo $todaysDate;
//echo "$myInteger + $myFloat=" .($myInteger + $myFloat) . "<br>" ;
echo "?";
?>
<br>
ok... i'm now not in a script.<br>
The time was<? echo date("h:i;s a");?><br>
Your IP address was:<? echo getenv("REMOTE_ADDR");?>
<body>
</html>
Thursday, September 25, 2014
Declearing variables in php
First basic php tutorial V2
<html>
<head>
<title>first php page</title>
</head>
<body>
hi there!<br>
<?php
echo "Dipen!<br>";
echo "The date was";
echo date("m/d/y");
echo"?";
?>
<br>
ok.... I'm now not in a script<br>
did you that the time was<? echo date("h:i:s a");?>
Your IP address was:<? echo getenv("REMOTE_ADDR");?>
<body>
</html>
First basic php tutorial
<html>
<head>
<title>Begining of basic 1st php page</title>
</head>
<body>
hi there!<br>
<?php
echo "Dipen!<br>";
echo "The date was";
echo date("m/d/y");
echo"?";
echo"<br> and current the time is". date("h:i:s");
?>
</body>
</html>
Subscribe to:
Posts (Atom)