Easy PHP Larn (Part-2)

Double-clicking on PHP like HTML files are not open, so the local server before starting work on the PC to install habeoyeba servers no problem. XAMPP or WAMP install a local server that will take. We're working with XAMPP ... 
the XAMPP for Windows 1.8.3 PHP To install the XAMPP Download from here. Install the system so as to install other details have written. 
Install the Apache and Mysql Start click on the right side, then on Explore Click the day. Sign in htdocs Folder > Folder name to that. (Ex: myproject) > myproject text.txt file an Open Folder. After the file index.php is the name of rineima. Now the index.php file in notepad ++ open. Enter the code stands






1
2
3
4
5
<? Php
echo "This Is My First Code" ;
?>
Click Save. 
Let's browserEND_LINK output dethi 
browserEND_LINK the address bar, type localhost / my_project / index.php Heston name localhost here must pay it. my_project the name of the folder. And the name of index.php File. File name is the name of the file index.php and if you do not run (localhost / my_project /) 
Code Analysis: 
How to Start >>> PHP <? php with. To the end?> Diyeera write all the code. 
<? Php 
?> 
>>> Is no code to call with echo or print. 
>>> Each code to the end; To use.

PHP Variable: 
Variable do not show too much work to do to try to teach. Variable This is just totally aware of any data that is collected in a container for 
example:
1
2
3
4
5
6
<? Php
$ mytext "This Is My First Code" ;
echo $ mytext ;
?>
Code Analysis: 
>>> PHP to Variable call on the $. 
The $ my_text a Variable. Instead of my_text if you can use something else. 
You can also use your name if you would understand the word no. 😀
Previous
Next Post »