SlideShare una empresa de Scribd logo
1 de 16
Introduction to Dynamic
Programming with PHP
By – Jose Philip Raja
(Creative Director of CreaveLabs IT Solutions)
Please..
 Take Notes..
 Ask Doubts..
 Contribute your Knowledge..
 Practice Privately..
© Introduction to PHP by Jose Philip Raja
What is PHP?
 PHP stands
for PHP: Hypertext Preprocessor
(recursive acronym)
 PHP is a widely-used, open source
scripting language
 PHP scripts are executed on the
server
 PHP is free to download and use
© Introduction to PHP by Jose Philip Raja
What is a PHP File?
 PHP files can contain text, HTML,
JavaScript code, and PHP code
 PHP code are executed on the server,
and the result is returned to the
browser as plain HTML
 PHP files have a default file extension
of ".php"
© Introduction to PHP by Jose Philip Raja
What Can PHP Do?
 PHP can generate dynamic page content
 PHP can create, open, read, write, and
close files on the server
 PHP can collect form data
 PHP can send and receive cookies
 PHP can add, delete, modify data in your
database
 PHP can restrict users to access some
pages on your website
 PHP can encrypt data
© Introduction to PHP by Jose Philip Raja
Why PHP?
 PHP runs on different platforms
(Windows, Linux, Unix, Mac OS X, etc.)
 PHP is compatible with almost all
servers used today (Apache, IIS, etc.)
 PHP has support for a wide range of
databases
 PHP is free. Download it from the official
PHP resource: www.php.net
 PHP is easy to learn and runs efficiently
on the server side
© Introduction to PHP by Jose Philip Raja
PHP BASICS
Lets dive in!!
© Introduction to PHP by Jose Philip Raja
PHP Basics
 Syntax
 Variables
 String
 Operators
 If…Else
 Switch
 Arrays
 While Loops
 For Loops
 Foreach
 Functions
 Classes
 $_GET
 $_POST
 $_REQUEST
 $_FILES
 $_SERVER
 $_SESSION
© Introduction to PHP by Jose Philip Raja
PHP ADVANCED
Learn More!!
© Introduction to PHP by Jose Philip Raja
PHP Advanced
 Multi – Array
 Date
 Include
 File Upload
 Cookies
 Sessions
 E-mail
 Error Handling
© Introduction to PHP by Jose Philip Raja
INTRODUCTION TO
MYSQL
Okay, lets progress to:
© Introduction to PHP by Jose Philip Raja
What is MySQL?
 MySQL is a database server
 MySQL is ideal for both small and
large applications
 MySQL supports standard SQL
 MySQL is free to download and use
 PHP combined with MySQL are cross-
platform
 The data in MySQL is stored in
database objects called tables.
© Introduction to PHP by Jose Philip Raja
MySQL Connection
<?php
$con = mysql_connect("localhost","peter","abc");
if (!$con) {
die('Could not connect: ' . mysql_error());
}
// some code
mysql_close($con);
?>
© Introduction to PHP by Jose Philip Raja
MySQL Queries
 Insert
 Select
 Where
 Order By
 Update
 Delete
© Introduction to PHP by Jose Philip Raja
CONTACT MODULE
A simple PHP App:
© Introduction to PHP by Jose Philip Raja
THANK YOU!
That’s it….
© Introduction to PHP by Jose Philip Raja

Más contenido relacionado

Destacado

Dynamic Program Problems
Dynamic Program ProblemsDynamic Program Problems
Dynamic Program Problems
Ranjit Sasmal
 
Data mining course learning outcomes,Data Mining CMAP
Data mining course learning outcomes,Data Mining CMAPData mining course learning outcomes,Data Mining CMAP
Data mining course learning outcomes,Data Mining CMAP
jaya lakshmi
 
Upaya Pengintegrasian KLHS Dalam RPJM
Upaya Pengintegrasian KLHS Dalam RPJMUpaya Pengintegrasian KLHS Dalam RPJM
Upaya Pengintegrasian KLHS Dalam RPJM
alizias_boys
 
PHP an intro -1
PHP an intro -1PHP an intro -1
PHP an intro -1
Kanchilug
 

Destacado (16)

Class 8 - Database Programming
Class 8 - Database ProgrammingClass 8 - Database Programming
Class 8 - Database Programming
 
Php Ppt
Php PptPhp Ppt
Php Ppt
 
Php Presentation
Php PresentationPhp Presentation
Php Presentation
 
Dynamic Program Problems
Dynamic Program ProblemsDynamic Program Problems
Dynamic Program Problems
 
Dynamicpgmming
DynamicpgmmingDynamicpgmming
Dynamicpgmming
 
Le nouveau AMP : apache mariadb php
Le nouveau AMP : apache mariadb phpLe nouveau AMP : apache mariadb php
Le nouveau AMP : apache mariadb php
 
Introdução ao ASP .NET Web API
Introdução ao ASP .NET Web APIIntrodução ao ASP .NET Web API
Introdução ao ASP .NET Web API
 
Dynamic programming1
Dynamic programming1Dynamic programming1
Dynamic programming1
 
Learning Outcomes Discussion
Learning Outcomes DiscussionLearning Outcomes Discussion
Learning Outcomes Discussion
 
How To Install Apache, MySQL & PHP on Windows Vista
How To Install Apache, MySQL & PHP on Windows VistaHow To Install Apache, MySQL & PHP on Windows Vista
How To Install Apache, MySQL & PHP on Windows Vista
 
Data mining course learning outcomes,Data Mining CMAP
Data mining course learning outcomes,Data Mining CMAPData mining course learning outcomes,Data Mining CMAP
Data mining course learning outcomes,Data Mining CMAP
 
Upaya Pengintegrasian KLHS Dalam RPJM
Upaya Pengintegrasian KLHS Dalam RPJMUpaya Pengintegrasian KLHS Dalam RPJM
Upaya Pengintegrasian KLHS Dalam RPJM
 
MySQL資料庫設計規劃與phpMyAdmin
MySQL資料庫設計規劃與phpMyAdminMySQL資料庫設計規劃與phpMyAdmin
MySQL資料庫設計規劃與phpMyAdmin
 
PHP an intro -1
PHP an intro -1PHP an intro -1
PHP an intro -1
 
開始網站設計
開始網站設計開始網站設計
開始網站設計
 
05. pengarahan joep_perumahan_kumuh_2016
05. pengarahan joep_perumahan_kumuh_201605. pengarahan joep_perumahan_kumuh_2016
05. pengarahan joep_perumahan_kumuh_2016
 

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

Introduction to Dynamic Web Programming with PHP & MySQL

  • 1. Introduction to Dynamic Programming with PHP By – Jose Philip Raja (Creative Director of CreaveLabs IT Solutions)
  • 2. Please..  Take Notes..  Ask Doubts..  Contribute your Knowledge..  Practice Privately.. © Introduction to PHP by Jose Philip Raja
  • 3. What is PHP?  PHP stands for PHP: Hypertext Preprocessor (recursive acronym)  PHP is a widely-used, open source scripting language  PHP scripts are executed on the server  PHP is free to download and use © Introduction to PHP by Jose Philip Raja
  • 4. What is a PHP File?  PHP files can contain text, HTML, JavaScript code, and PHP code  PHP code are executed on the server, and the result is returned to the browser as plain HTML  PHP files have a default file extension of ".php" © Introduction to PHP by Jose Philip Raja
  • 5. What Can PHP Do?  PHP can generate dynamic page content  PHP can create, open, read, write, and close files on the server  PHP can collect form data  PHP can send and receive cookies  PHP can add, delete, modify data in your database  PHP can restrict users to access some pages on your website  PHP can encrypt data © Introduction to PHP by Jose Philip Raja
  • 6. Why PHP?  PHP runs on different platforms (Windows, Linux, Unix, Mac OS X, etc.)  PHP is compatible with almost all servers used today (Apache, IIS, etc.)  PHP has support for a wide range of databases  PHP is free. Download it from the official PHP resource: www.php.net  PHP is easy to learn and runs efficiently on the server side © Introduction to PHP by Jose Philip Raja
  • 7. PHP BASICS Lets dive in!! © Introduction to PHP by Jose Philip Raja
  • 8. PHP Basics  Syntax  Variables  String  Operators  If…Else  Switch  Arrays  While Loops  For Loops  Foreach  Functions  Classes  $_GET  $_POST  $_REQUEST  $_FILES  $_SERVER  $_SESSION © Introduction to PHP by Jose Philip Raja
  • 9. PHP ADVANCED Learn More!! © Introduction to PHP by Jose Philip Raja
  • 10. PHP Advanced  Multi – Array  Date  Include  File Upload  Cookies  Sessions  E-mail  Error Handling © Introduction to PHP by Jose Philip Raja
  • 11. INTRODUCTION TO MYSQL Okay, lets progress to: © Introduction to PHP by Jose Philip Raja
  • 12. What is MySQL?  MySQL is a database server  MySQL is ideal for both small and large applications  MySQL supports standard SQL  MySQL is free to download and use  PHP combined with MySQL are cross- platform  The data in MySQL is stored in database objects called tables. © Introduction to PHP by Jose Philip Raja
  • 13. MySQL Connection <?php $con = mysql_connect("localhost","peter","abc"); if (!$con) { die('Could not connect: ' . mysql_error()); } // some code mysql_close($con); ?> © Introduction to PHP by Jose Philip Raja
  • 14. MySQL Queries  Insert  Select  Where  Order By  Update  Delete © Introduction to PHP by Jose Philip Raja
  • 15. CONTACT MODULE A simple PHP App: © Introduction to PHP by Jose Philip Raja
  • 16. THANK YOU! That’s it…. © Introduction to PHP by Jose Philip Raja