PHP tutorials , php tutorials for beginners , tutorials for php - PowerPoint PPT Presentation

About This Presentation
Title:

PHP tutorials , php tutorials for beginners , tutorials for php

Description:

It is a general purpose programming language that can be used for multiple applications such as setting-up security for web information and manipulation. – PowerPoint PPT presentation

Number of Views:2532
Slides: 13
Provided by: aimaq9a
Category:

less

Transcript and Presenter's Notes

Title: PHP tutorials , php tutorials for beginners , tutorials for php


1
Welcome TO
  • FreeEasyTutorials.com

http//www.freeeasytutorials.com/
2
PHP Tutorials
What is PHP
gt PHP which stands for Hypertext Preprocessor is
a web server-side scripting language designed for
web development. gt It is a general purpose
programming language that can be used for
multiple applications such as setting-up security
for web information and manipulation of data
within database more especially MySQL as we will
see later in our tutorials and much more.gt PHP
helps in making work easy especially when using
the inbuilt functions and connecting to a
database.
http//www.freeeasytutorials.com/
3
Features of PHP
gt PHP is the most popular scripting language used
for web development. gt PHP is use to develop
static as well as dynamic websites. gt
Interesting thing about PHP is it is free , open
source (no need to buy license to create personal
as well as commercial applications) and
server-side scripting language(the code is always
executed on the server and generated output is
returned to the end user) gt PHP is faster than
other scripting language like ASP and JSP. gt
PHP provides two options to write your code I.e.
you can write your HTML code and embed PHP code
inside the HTML code or you can have option to
write HTML code inside PHP code.We will see how
to write them in upcoming tutorials.
http//www.freeeasytutorials.com/
4
Environment setup
  • gt In order to create and run PHP programs on your
    pc and before uploading them to hosts for
    worldwide connection, you need a local server.
    gt A server will help to enhance communication
    between scripts thus enabling your application
    run smoothly. gt For this purpose you need a
    software like Xampp or other options like Wampp
    but in this case we are going to use Xampp.

http//www.freeeasytutorials.com/
5
XAMPP installation
  • As we already know In order to create and run PHP
    programs on your pc and before uploading them to
    hosts for worldwide connection, you need a local
    server. Follow the steps given below to install
    XAMPP on your local computer. Locate the
    downloaded programs i.e. XAMPP setup file gt
    The best directory to get you to your downloaded
    program is downloads/programs and look for the
    Xampp executable file. Double-click it or
    Running program as an administrator gt Right
    click on the icon of the XAMPP program
    (executable file) and select the option Run as
    administrator from the drop down list.

http//www.freeeasytutorials.com/
6
PHP - Database
  • gt More often we would like to keep information
    about our users for later reference with our
    website, we thus resolve to using databases. gt
    PHP helps in making work easy especially when
    using the inbuilt functions and connecting to a
    database. gt With PHP, you can connect to
    database and perform the databases operations
    like insert,delete,update and many more. gt
    MySQL is mainly use for simplicity in storing
    website data for example user-names and
    passwords, it is better to have a database for
    reference. gt MySQL provides a better interface
    for which we can manipulate our data. gt Before
    doing anything with MySql database, ensure you
    start MySql module in the Xampp control panel.
    gt Our next topics will take us through the
    process of connecting and manipulating data in
    our database and the website.

http//www.freeeasytutorials.com/
7
PHP - MYSQL Connect
  • gt This part is very important and must be
    included in every file where we want to connect
    to database and retrieve or send data to a
    database. gt The better version of doing it is
    to create a file with the connection
    functionality and include or require in this
    other files. gt The function for creating the
    connection is mysql_connect(server_name,
    username, password) gt By default, the php
    admin provides that the username to be root and
    password is null i.e . gt To start the PHP
    admin for database, click the admin button for
    MySql module in the xampp control panel.

http//www.freeeasytutorials.com/
8
PHP - MYSQL Update
  • gt Many at a times, users would like to update
    their information in your website such as the
    username, or email or the reset a password gt We
    thus must therefore provide the with this
    functionality to change these things according to
    user needs. gt To enhance this, we use the
    UPDATE query in PHP queries. gt we can specify
    which data we want to update the data using the
    WHERE clause gt For example lets change the
    name Brianfrom previous example to John and email
    example_at_gmail.com to someone_at_gmail.com

http//www.freeeasytutorials.com/
9
PHP - MYSQL Select
  • gt The SELECT query allows us to get information
    from the database. gt We use SELECT query to get
    all the information or specific information from
    the database. gt To get all the information from
    database we use a i.e SELECT FROM
    table_name. gt To get information of a specific
    field we specify it in the query i.e let us
    select information from the field username i.e
    SELECT username FROM table_name. gt This
    module also allows the selection of data for a
    specific object using the WHERE clause.gt Lets
    for example write a simple program to display all
    id, username and emails from our table

http//www.freeeasytutorials.com/
10
PHP - Sample Application
  • gt We have now come to the end of our tutorials.
    gt Attached is a a sample application for a
    voting system in an institution.You can also use
    this voting system to do online shopping.
    Instruction on installing the online voting
    system1.Download the folder Dekut here. 2.Save
    the folder in htdocs as we do always in xampp
    folder in c disk. 3.Start both apache an mysql
    in xampp control panel. 4.Click admin for the
    mysQl option in xamp control pannel.

http//www.freeeasytutorials.com/
11
About FreeEasyTutorials.com
  • FreeEasyTutorials.com (launched in 2017) is a
    website which has been created to provide very
    simple and easy programming tutorials and useful
    articles for beginners and professionals across
    the globe.The website also contains articles to
    learn how to earn online money.
  • Mission

New ideas, techniques and teachings are found
every day. FreeEasyTutorials.com is always
changing / adding it's tutorials and references
to provide latest tutorials to our readers. We
are working continuously to make
FreeEasyTutorials.com more useful for every
single moment you spend on the website. Best
regards,FreeEasyTutorials.com
http//www.freeeasytutorials.com/
12
For More Information Please Visit Our Site
  • http//www.freeeasytutorials.com/

http//www.freeeasytutorials.com/
Write a Comment
User Comments (0)
About PowerShow.com