Saturday 18 March 2017

Creating a PHP Page

PHP page will be a very simple One. You can start this page with the Special Markup that indicates You are about to start using PHP and that Markup looks like this
<?php
.
.
.
.
.
?>
for Example:-
<?php
phpinfo();
?>
Here PHP Code Starts<?php and end with ?> and phpinfo(); is a library function. for inserting PHP  logo we use <img src="php-med-trans-light.gif"> statement.
Printing the Some text on the Browser:-In PHP for printing a statement we use echo statement
For Example:-
<html>
<head><title>displaying text on the browser using echo statemant</title>
</head>
<body>
<br>
<?php
echo "Welcome to the PHP world";
?>
</body>
</html>
In Your browser now Show:-

Welcome to the PHP world
 

No comments:

Post a Comment