All right,so set up the things we need to install for practicing php.
we need Apache and Mysql running so i'm going to use XAMPP.you can download it from here.download and install.By default it should be installed in C:\xampp ( if you are running windows)after installation start up the xampp server.
and start Apache and MySQL
So open up xampp folder and you'll find some files and folders. one of the is "htdocs".open up the folder,now,which php file we wanna run should be on that folder,you have to have that php file in that folder.and we also need the Apache n MySQL up n running.
so now lets test it
so write a php file,you can use this one :
<?php
$var="Hello World";
echo $var;
?>
no save it into C:\xampp\htdocs\var.php
(you can use any name as you like,make sure to use the .php extension)
no go to your browser,in the address bar type localhost/var.php
and you there you go:

if you have this output then you're all set to go (Y)

0 comments:
Post a Comment