What is PHP?
What is PHP?
PHP is basically use for web developing dynamic website.
Example of dynamic website are facebook.com,google.com etc.
About Web Development
Website has two type which is Static web site and Dynamic website.
-Static Website
In Static website webpage alway show in the same page content.
we use html and css for create static webpage.you can use static webpage
like company profile website.
-Dynamic Website
In Dynamic website the webpage content change automatically.
We use php with html for create dynamic page.
php work with mysql and change webpage content automatically.
php work with server base you can use xampp or wamp.
Advantage of PHP
PHP is openspurce software. For PHP Software,we can download xampp and wamp.
We can run PHP Script to many Operating system, like Windows,Linux,Unix,mac and more.
We can run PHP Script to many server, like Apache server.
We can use many database, like MySQL.
Download xampp
-Go to you browser
-and search for xampp or wampp or
-Copy and paste this url http://www.apachefriends.org.
To install xampp
-Double click on xampp installer
-After Successfully Install. Open xampp Control Panel.if the control panel not show after installing just go to windows key and search xampp control panel.
-Click on Apache and Mysql and also click on Start in front of Apache and Mysql then close xampp Control Panel.
PHP Tags
This is the correct open and close syntax of php.
<?php
//coding here..
?>
This is the sort tag of php
<?
//Coding here
?>
How to write PHP Code
In php you can use any editor software like notepad,wordpad,etc..
Much better to use Dreamweaver for beginners to view the color coding and easy to find the errors.
How to use Dreamweaver?
1.Download Dreamweaver any version or go to adobe.com
2Open the software and Double Click PHP.
Now you can use this Code
Simple Script:
<?php
echo "Hello World";
?>
=====================
Output:
Hello world
=====================
after encoding this code save it to htdocs to find htdocs follow this path C://xampp/htdocs
and name it anyfilename.php
Easy way to find htdocs:
Go to my computer and go to drive C: and find xampp folder click this and find htdocs
To run this code:
go to browser google chrome or any browser like firefox etc.
next follow this path localhost/anyfilename.php
Now you can see the output "Hello world"
PHP is basically use for web developing dynamic website.
Example of dynamic website are facebook.com,google.com etc.
About Web Development
Website has two type which is Static web site and Dynamic website.
-Static Website
In Static website webpage alway show in the same page content.
we use html and css for create static webpage.you can use static webpage
like company profile website.
-Dynamic Website
In Dynamic website the webpage content change automatically.
We use php with html for create dynamic page.
php work with mysql and change webpage content automatically.
php work with server base you can use xampp or wamp.
Advantage of PHP
PHP is openspurce software. For PHP Software,we can download xampp and wamp.
We can run PHP Script to many Operating system, like Windows,Linux,Unix,mac and more.
We can run PHP Script to many server, like Apache server.
We can use many database, like MySQL.
Download xampp
-Go to you browser
-and search for xampp or wampp or
-Copy and paste this url http://www.apachefriends.org.
To install xampp
-Double click on xampp installer
-After Successfully Install. Open xampp Control Panel.if the control panel not show after installing just go to windows key and search xampp control panel.
-Click on Apache and Mysql and also click on Start in front of Apache and Mysql then close xampp Control Panel.
PHP Tags
This is the correct open and close syntax of php.
<?php
//coding here..
?>
This is the sort tag of php
<?
//Coding here
?>
How to write PHP Code
In php you can use any editor software like notepad,wordpad,etc..
Much better to use Dreamweaver for beginners to view the color coding and easy to find the errors.
How to use Dreamweaver?
1.Download Dreamweaver any version or go to adobe.com
2Open the software and Double Click PHP.
Now you can use this Code
Simple Script:
<?php
echo "Hello World";
?>
=====================
Output:
Hello world
=====================
after encoding this code save it to htdocs to find htdocs follow this path C://xampp/htdocs
and name it anyfilename.php
Easy way to find htdocs:
Go to my computer and go to drive C: and find xampp folder click this and find htdocs
To run this code:
go to browser google chrome or any browser like firefox etc.
next follow this path localhost/anyfilename.php
Now you can see the output "Hello world"
0 (mga) komento:
Post a Comment