2. Index
What is PHP ?
Why use PHP ?
What can PHP do ?
PHP Syntax
Tools Required
Practical work
3. What is PHP
PHP ( Hypertext Preprocessor ) is a general-purpose programming
language originally designed for web development.
PHP is a server side scripting language. that is used to develop Static
websites or Dynamic websites or Web applications.
78.9% of whole web. Every 8 websites out of 10 are using PHP in on or
other way.
An PHP file can consist of HTML, CSS, JAVASCRIPT and of course PHP.
Facebook , Wikipedia , Flicker, Tumbler And Yahoo are some global
companies using PHP in their products.
4. Why use PHP ?
Security PHP frameworks built-in feature and tools make it easier to
protect the web applications from the outer attacks and security threats.
High Speed PHP is very fast programming language because it uses its
own memory for processing.
Scalability PHP is very flexible and capable language it can handle from
a “Hello World “ app to a Facebook size project.
Loosely Typed Language PHP is loosely typed language and best for
beginners
Open Source PHP is an open source it doesn’t require any additional
expensive software to work with.
5. What can PHP do
PHP can generate dynamic page content
PHP can create , open , read, delete and close files on server
PHP can collect form data
PHP can add, delete, modify and retrieve data in database.
13. Echo
<?php echo” Hello world ”; ?>
Echo function is a powerful and basic function of PHP . It could be used at
different places for different purposes. Following are some basic features
of echo function.
Out put one or more strings
Can output HTML , CSS and JavaScript content
Used to create dynamic content
18. mysqli_query()
<?php
$query=”SELECT * FROM user where user_id=1”;
$do_query=mysqli_query($conn,$query);
If(!$do_query){
echo “query failed”;
}
?>
The mysqli_query() function performs a query against the database.