PHP "hello, world"

Posted by Unknown On Thursday 20 December 2012 0 comments

  wellcome to our php hello world tutorial 


       php is a very simple powerfull server scripting language,in our tutorial how run php on your server
before studing php you shoud need to know a small amound of



1.html
2.javascript

php file extension


php file have extension .php,.php3 or phtml

php syntax


php file are strt and end between <?php--?>

example:-
<?php
//code
?>

hello world program


helloWorld.php
<php
// This will print out Hello World!
echo"Hello World!";
?>

Now here we write a hello worl program but the secnd proble is how run a php program
 Needs
1.php compailer
2.webserver
step1:so we can use a xmpp software for running php program so you want to download and instal xmpp after instaletion start appche

step2:coppy your hello world program to  C:\xampp\htdocs folder

step2:open your web browser and type http://localhost/helloworld.php


out put
Hello World!

thaku for reading our helloworld program

0 comments:

Post a Comment

Fashion