SlideShare a Scribd company logo
1 of 18
INTRODUCTION TO PHP
       by Jorge Garifuna
     info@GariDigital.com
           @jgarifuna
       jgari.com/resume




              1
WHAT IS PHP?


Recursive acronym for PHP: Hypertext Preprocessor

Widely-used open source general-purpose scripting
language

Suited for web development and can be embedded
into HTML




                        2
WHEN TO USE PHP




       3
WHY USE PHP



It integrates with everything

Best documentation on the web

It makes you a Power Hungry Programmer!




                         4
WHY USE PHP




     5
PROJECTS USING PHP




        6
WAYS TO LEARN PHP

1. By writing straight PHP from scratch

2. By using PHP frameworks

  CakePHP

  Symfony

  Zend

3. By using Quick Web Application Builder (QWAB)


                         7
SETTING UP
             ENVIRONMENT
Mac OS (ready or MAMP or )
  http://www.coolestguyplanettech.com/how-to-install-php-mysql-apache-on-os-x-10-6/


Windows (XAMPP or WAMP)
  http://www.apachefriends.org/en/xampp.html


Linux
  Ubuntu: sudo apt-get install php5 mysql-server apache2

  CentOS: http://www.howtoforge.com/quick-n-easy-lamp-server-centos-rhel




                                           8
TOOLS

Text Editor or IDE
  PSPad
  netbeans
  eclipse
Database administration
  phpMyAdmin
  Sequel Pro
  MySQL Workbench

                          9
FIRST PHP PROGRAM

<?php
   echo "Hi, I'm a PHP script!";
?>


  Save as hello.php on web server




                          10
CONNECTING TO
          DATABASE

<?php
if (mysql_connect(DB_SERVER, DB_USER, DB_PASSWORD)){
       if (mysql_select_db(DB_NAME)){
          return true;
       }
}

die("nDB ERROR: " . mysql_error() . "n");
?>Text




                                  11
PROCESSING FORMS
file name: myform.html

<html>                                                  file name: myform.php
<body>
     <form action="myform.php" method="post">           <html>
                                                        <body>
         <p>Your Name:                                       Your name is:
         <input type="text" name="yourname" /><br />
                                                            <?php echo $_POST['yourname']; ?><br />
         E-mail:
         <input type="text" name="email" /></p>             Your e-mail:
         <p>Do you like this website?                       <?php echo $_POST['email']; ?><br />
         <input type="radio" name="likeit"                  <br />
         value="Yes" checked="checked" /> Yes
         <input type="radio" name="likeit"                  Do you like this website?
         value="No" /> No
         <input type="radio" name="likeit" value="Not       <?php echo $_POST['likeit']; ?><br />
         sure" /> Not sure</p>                              <br />
         <p>Your comments:<br />                            Comments:<br />
         <textarea name="comments" rows="10"
         cols="40"></textarea></p>                          <?php echo $_POST['comments']; ?>
         <p><input type="submit" value="Send it!"></    </body>
         p>                                             </html>
     </form>
</body>
</html>




                                                   12
CONNECTING TO FACEBOOK
   AND TWITTER WITH
     HYBRIDAUTH




http://oyanix.com/opensource/hybridauth/




                     13
SPEEDING UP PROTOTYPING WITH
  QUICK WEB APPLICATION
     BUILDER (QWAB)


Generates complete functional web-based
applications through a web-based interface in three
easy steps

Would you like to see it in action?

http://garisoft.com/qwab




                          14
HOSTING RESOURCES
      FOR PHP


hostmonster.com

hostgator.com

godaddy.com




                  15
TRANSFERRING YOUR PHP
   FILES TO THE SERVER




http://filezilla-project.org/




                         16
USEFUL PHP RESOURCES

http://www.phpclasses.org/

http://php.net/

http://framework.zend.com/

http://cakephp.org/

http://www.laphp.org/

http://lampsig.org

http://www.meetup.com/LAMPsig/

                        17
SEREMEIN!(THANK YOU!)


            Jorge Garifuna
        info@GariDigital.com
              @jgarifuna
          jgari.com/resume


   http://www.meetup.com/LAMPsig



                 18

More Related Content

What's hot

Joomla wireframing Template - Joomladay Netherlands 2014 #jd14nl
Joomla wireframing Template - Joomladay Netherlands 2014 #jd14nlJoomla wireframing Template - Joomladay Netherlands 2014 #jd14nl
Joomla wireframing Template - Joomladay Netherlands 2014 #jd14nlPhilip Locke
 
WordPress Structure and Best Practices
WordPress Structure and Best PracticesWordPress Structure and Best Practices
WordPress Structure and Best Practicesmarkparolisi
 
CI workflow in a web studio
CI workflow in a web studioCI workflow in a web studio
CI workflow in a web studiodeWeb
 
Custom Template for Joomla! 3
Custom Template for Joomla! 3Custom Template for Joomla! 3
Custom Template for Joomla! 3Carly Willats
 
REST
RESTREST
RESTmrdon
 
Testumgebungen für WordPress
Testumgebungen für WordPressTestumgebungen für WordPress
Testumgebungen für WordPressWalter Ebert
 
Create dynamic sites with PHP & MySQL
Create dynamic sites with PHP & MySQLCreate dynamic sites with PHP & MySQL
Create dynamic sites with PHP & MySQLkangaro10a
 
WordPress Theme & Plugin i18n & L10n
WordPress Theme & Plugin i18n & L10nWordPress Theme & Plugin i18n & L10n
WordPress Theme & Plugin i18n & L10ncodebangla
 
Mambo (2006) Presentation on CMS
Mambo (2006) Presentation on CMSMambo (2006) Presentation on CMS
Mambo (2006) Presentation on CMSJohn Patten
 
FROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMP
FROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMPFROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMP
FROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMPParsons
 
Automated Tasks for WordPress
Automated Tasks for WordPressAutomated Tasks for WordPress
Automated Tasks for WordPressJoe Cartonia
 
Integration Test Cucumber + Webrat + Selenium
Integration Test Cucumber + Webrat + SeleniumIntegration Test Cucumber + Webrat + Selenium
Integration Test Cucumber + Webrat + Seleniumtka
 
Tutorial PHP and Dreamweaver CS3
Tutorial PHP and Dreamweaver CS3Tutorial PHP and Dreamweaver CS3
Tutorial PHP and Dreamweaver CS3Halizah Ahmad
 
Doing Things the WordPress Way
Doing Things the WordPress WayDoing Things the WordPress Way
Doing Things the WordPress WayMatt Wiebe
 
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”Valent Mustamin
 
WordPress Troubleshooting
WordPress TroubleshootingWordPress Troubleshooting
WordPress TroubleshootingJoe Cartonia
 
How to set up a Wordpress Blog
How to set up a Wordpress BlogHow to set up a Wordpress Blog
How to set up a Wordpress Blogkichu
 

What's hot (20)

Joomla wireframing Template - Joomladay Netherlands 2014 #jd14nl
Joomla wireframing Template - Joomladay Netherlands 2014 #jd14nlJoomla wireframing Template - Joomladay Netherlands 2014 #jd14nl
Joomla wireframing Template - Joomladay Netherlands 2014 #jd14nl
 
WordPress Structure and Best Practices
WordPress Structure and Best PracticesWordPress Structure and Best Practices
WordPress Structure and Best Practices
 
CI workflow in a web studio
CI workflow in a web studioCI workflow in a web studio
CI workflow in a web studio
 
Custom Template for Joomla! 3
Custom Template for Joomla! 3Custom Template for Joomla! 3
Custom Template for Joomla! 3
 
REST
RESTREST
REST
 
Testumgebungen für WordPress
Testumgebungen für WordPressTestumgebungen für WordPress
Testumgebungen für WordPress
 
Create dynamic sites with PHP & MySQL
Create dynamic sites with PHP & MySQLCreate dynamic sites with PHP & MySQL
Create dynamic sites with PHP & MySQL
 
WordPress Theme & Plugin i18n & L10n
WordPress Theme & Plugin i18n & L10nWordPress Theme & Plugin i18n & L10n
WordPress Theme & Plugin i18n & L10n
 
Mambo (2006) Presentation on CMS
Mambo (2006) Presentation on CMSMambo (2006) Presentation on CMS
Mambo (2006) Presentation on CMS
 
FROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMP
FROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMPFROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMP
FROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMP
 
6.copy text
6.copy text6.copy text
6.copy text
 
Automated Tasks for WordPress
Automated Tasks for WordPressAutomated Tasks for WordPress
Automated Tasks for WordPress
 
Integration Test Cucumber + Webrat + Selenium
Integration Test Cucumber + Webrat + SeleniumIntegration Test Cucumber + Webrat + Selenium
Integration Test Cucumber + Webrat + Selenium
 
Tutorial PHP and Dreamweaver CS3
Tutorial PHP and Dreamweaver CS3Tutorial PHP and Dreamweaver CS3
Tutorial PHP and Dreamweaver CS3
 
Doing Things the WordPress Way
Doing Things the WordPress WayDoing Things the WordPress Way
Doing Things the WordPress Way
 
Real-Time Django
Real-Time DjangoReal-Time Django
Real-Time Django
 
Flashpageflip
FlashpageflipFlashpageflip
Flashpageflip
 
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
 
WordPress Troubleshooting
WordPress TroubleshootingWordPress Troubleshooting
WordPress Troubleshooting
 
How to set up a Wordpress Blog
How to set up a Wordpress BlogHow to set up a Wordpress Blog
How to set up a Wordpress Blog
 

Viewers also liked

Sistemas operativos jesus_lopezyrobertoalmena
Sistemas operativos jesus_lopezyrobertoalmenaSistemas operativos jesus_lopezyrobertoalmena
Sistemas operativos jesus_lopezyrobertoalmenaJesús López González
 
Informe anual 2013 de Abengoa Bioenergía
Informe anual 2013 de Abengoa BioenergíaInforme anual 2013 de Abengoa Bioenergía
Informe anual 2013 de Abengoa BioenergíaAbengoa
 
Cara membuat email yahoo indonesia
Cara membuat email yahoo indonesiaCara membuat email yahoo indonesia
Cara membuat email yahoo indonesiaSamsul Hadi
 
Nikki lewis hw 420 unit 5 project
Nikki lewis hw 420 unit 5 projectNikki lewis hw 420 unit 5 project
Nikki lewis hw 420 unit 5 projectNikkiLewis5
 
Manejo de la Acromegalia - SPE - ENDO PERU 2015
Manejo de la Acromegalia - SPE - ENDO PERU 2015Manejo de la Acromegalia - SPE - ENDO PERU 2015
Manejo de la Acromegalia - SPE - ENDO PERU 2015JOSE LUIS PAZ IBARRA
 
Manual de instalacion 120505 090209 - Servicio Tecnico Fagor
Manual de instalacion 120505 090209 - Servicio Tecnico FagorManual de instalacion 120505 090209 - Servicio Tecnico Fagor
Manual de instalacion 120505 090209 - Servicio Tecnico Fagorserviciotecnicofagor
 
Food Production, Nutrition and Environmental Effects
Food Production, Nutrition and Environmental EffectsFood Production, Nutrition and Environmental Effects
Food Production, Nutrition and Environmental EffectsMichael Newbold
 
Ines dussel aprender_y_enseniar_en_la_cultura_digital
Ines dussel aprender_y_enseniar_en_la_cultura_digitalInes dussel aprender_y_enseniar_en_la_cultura_digital
Ines dussel aprender_y_enseniar_en_la_cultura_digitalLorena Brondani
 
Curriculum de Sara Lopez-Figueredo
Curriculum de Sara Lopez-FigueredoCurriculum de Sara Lopez-Figueredo
Curriculum de Sara Lopez-FigueredoSara Lopez
 
The Berlin Wall
The Berlin WallThe Berlin Wall
The Berlin WallCaroline
 
Grua puente
Grua puenteGrua puente
Grua puentemichael
 
Lean Facilitator Skills: Applying Psychology in the Moment
Lean Facilitator Skills: Applying Psychology in the MomentLean Facilitator Skills: Applying Psychology in the Moment
Lean Facilitator Skills: Applying Psychology in the MomentTKMG, Inc.
 

Viewers also liked (20)

Sistemas operativos jesus_lopezyrobertoalmena
Sistemas operativos jesus_lopezyrobertoalmenaSistemas operativos jesus_lopezyrobertoalmena
Sistemas operativos jesus_lopezyrobertoalmena
 
plan de trabajo para pcs
plan de trabajo para pcsplan de trabajo para pcs
plan de trabajo para pcs
 
Informe anual 2013 de Abengoa Bioenergía
Informe anual 2013 de Abengoa BioenergíaInforme anual 2013 de Abengoa Bioenergía
Informe anual 2013 de Abengoa Bioenergía
 
Delicias del gordo 1
Delicias del gordo 1Delicias del gordo 1
Delicias del gordo 1
 
Cara membuat email yahoo indonesia
Cara membuat email yahoo indonesiaCara membuat email yahoo indonesia
Cara membuat email yahoo indonesia
 
Nikki lewis hw 420 unit 5 project
Nikki lewis hw 420 unit 5 projectNikki lewis hw 420 unit 5 project
Nikki lewis hw 420 unit 5 project
 
Apresiasi
ApresiasiApresiasi
Apresiasi
 
Manejo de la Acromegalia - SPE - ENDO PERU 2015
Manejo de la Acromegalia - SPE - ENDO PERU 2015Manejo de la Acromegalia - SPE - ENDO PERU 2015
Manejo de la Acromegalia - SPE - ENDO PERU 2015
 
Manual de instalacion 120505 090209 - Servicio Tecnico Fagor
Manual de instalacion 120505 090209 - Servicio Tecnico FagorManual de instalacion 120505 090209 - Servicio Tecnico Fagor
Manual de instalacion 120505 090209 - Servicio Tecnico Fagor
 
Factores+de+riesgo+ocupacionales+iix
Factores+de+riesgo+ocupacionales+iix Factores+de+riesgo+ocupacionales+iix
Factores+de+riesgo+ocupacionales+iix
 
Food Production, Nutrition and Environmental Effects
Food Production, Nutrition and Environmental EffectsFood Production, Nutrition and Environmental Effects
Food Production, Nutrition and Environmental Effects
 
El candelero
El candeleroEl candelero
El candelero
 
Futsal Regulacy from FIFA
Futsal Regulacy from FIFAFutsal Regulacy from FIFA
Futsal Regulacy from FIFA
 
Ines dussel aprender_y_enseniar_en_la_cultura_digital
Ines dussel aprender_y_enseniar_en_la_cultura_digitalInes dussel aprender_y_enseniar_en_la_cultura_digital
Ines dussel aprender_y_enseniar_en_la_cultura_digital
 
Curriculum de Sara Lopez-Figueredo
Curriculum de Sara Lopez-FigueredoCurriculum de Sara Lopez-Figueredo
Curriculum de Sara Lopez-Figueredo
 
Curso de griego del nt gresham machen, j.
Curso de griego del nt   gresham machen, j.Curso de griego del nt   gresham machen, j.
Curso de griego del nt gresham machen, j.
 
The Berlin Wall
The Berlin WallThe Berlin Wall
The Berlin Wall
 
Grua puente
Grua puenteGrua puente
Grua puente
 
Lean Facilitator Skills: Applying Psychology in the Moment
Lean Facilitator Skills: Applying Psychology in the MomentLean Facilitator Skills: Applying Psychology in the Moment
Lean Facilitator Skills: Applying Psychology in the Moment
 
Queloides (1) (1) (1)
Queloides (1) (1) (1)Queloides (1) (1) (1)
Queloides (1) (1) (1)
 

Similar to Introduction to php

PHP Hypertext Preprocessor
PHP Hypertext PreprocessorPHP Hypertext Preprocessor
PHP Hypertext Preprocessoradeel990
 
basic concept of php(Gunikhan sonowal)
basic concept of php(Gunikhan sonowal)basic concept of php(Gunikhan sonowal)
basic concept of php(Gunikhan sonowal)Guni Sonow
 
Rits Brown Bag - PHP & PHPMyAdmin
Rits Brown Bag - PHP & PHPMyAdminRits Brown Bag - PHP & PHPMyAdmin
Rits Brown Bag - PHP & PHPMyAdminRight IT Services
 
Send, pass, get variables with php, form, html & java script code
Send, pass, get variables with php, form, html & java script codeSend, pass, get variables with php, form, html & java script code
Send, pass, get variables with php, form, html & java script codeNoushadur Shoukhin
 
PHP and MySQL : Server Side Scripting For Web Development
PHP and MySQL : Server Side Scripting For Web DevelopmentPHP and MySQL : Server Side Scripting For Web Development
PHP and MySQL : Server Side Scripting For Web DevelopmentEdureka!
 
Php Tutorial | Introduction Demo | Basics
 Php Tutorial | Introduction Demo | Basics Php Tutorial | Introduction Demo | Basics
Php Tutorial | Introduction Demo | BasicsShubham Kumar Singh
 
Learning of Php and My SQL Tutorial | For Beginners
Learning of Php and My SQL Tutorial | For BeginnersLearning of Php and My SQL Tutorial | For Beginners
Learning of Php and My SQL Tutorial | For BeginnersRatnesh Pandey
 
Introducation to php for beginners
Introducation to php for beginners Introducation to php for beginners
Introducation to php for beginners musrath mohammad
 
php_postgresql.ppt
php_postgresql.pptphp_postgresql.ppt
php_postgresql.pptElieNGOMSEU
 
PHP with Postgres SQL connection string and connecting
PHP with Postgres SQL connection string and connectingPHP with Postgres SQL connection string and connecting
PHP with Postgres SQL connection string and connectingPraveenHegde20
 
Introduction to php and POSTGRESQL. ....
Introduction to php and POSTGRESQL. ....Introduction to php and POSTGRESQL. ....
Introduction to php and POSTGRESQL. ....Lalith86
 
nguyenhainhathuy-building-restful-web-service
nguyenhainhathuy-building-restful-web-servicenguyenhainhathuy-building-restful-web-service
nguyenhainhathuy-building-restful-web-servicehazzaz
 

Similar to Introduction to php (20)

PHP Hypertext Preprocessor
PHP Hypertext PreprocessorPHP Hypertext Preprocessor
PHP Hypertext Preprocessor
 
basic concept of php(Gunikhan sonowal)
basic concept of php(Gunikhan sonowal)basic concept of php(Gunikhan sonowal)
basic concept of php(Gunikhan sonowal)
 
Rits Brown Bag - PHP & PHPMyAdmin
Rits Brown Bag - PHP & PHPMyAdminRits Brown Bag - PHP & PHPMyAdmin
Rits Brown Bag - PHP & PHPMyAdmin
 
Php introduction
Php introductionPhp introduction
Php introduction
 
Send, pass, get variables with php, form, html & java script code
Send, pass, get variables with php, form, html & java script codeSend, pass, get variables with php, form, html & java script code
Send, pass, get variables with php, form, html & java script code
 
Php tutorial
Php  tutorialPhp  tutorial
Php tutorial
 
Php with my sql
Php with my sqlPhp with my sql
Php with my sql
 
PHP and MySQL : Server Side Scripting For Web Development
PHP and MySQL : Server Side Scripting For Web DevelopmentPHP and MySQL : Server Side Scripting For Web Development
PHP and MySQL : Server Side Scripting For Web Development
 
Phpbasics
PhpbasicsPhpbasics
Phpbasics
 
Php Tutorial | Introduction Demo | Basics
 Php Tutorial | Introduction Demo | Basics Php Tutorial | Introduction Demo | Basics
Php Tutorial | Introduction Demo | Basics
 
Php My SQL Tutorial | beginning
Php My SQL Tutorial | beginningPhp My SQL Tutorial | beginning
Php My SQL Tutorial | beginning
 
Learning of Php and My SQL Tutorial | For Beginners
Learning of Php and My SQL Tutorial | For BeginnersLearning of Php and My SQL Tutorial | For Beginners
Learning of Php and My SQL Tutorial | For Beginners
 
Introducation to php for beginners
Introducation to php for beginners Introducation to php for beginners
Introducation to php for beginners
 
Php with mysql ppt
Php with mysql pptPhp with mysql ppt
Php with mysql ppt
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
php_postgresql.ppt
php_postgresql.pptphp_postgresql.ppt
php_postgresql.ppt
 
PHP with Postgres SQL connection string and connecting
PHP with Postgres SQL connection string and connectingPHP with Postgres SQL connection string and connecting
PHP with Postgres SQL connection string and connecting
 
Introduction to php and POSTGRESQL. ....
Introduction to php and POSTGRESQL. ....Introduction to php and POSTGRESQL. ....
Introduction to php and POSTGRESQL. ....
 
php_postgresql.ppt
php_postgresql.pptphp_postgresql.ppt
php_postgresql.ppt
 
nguyenhainhathuy-building-restful-web-service
nguyenhainhathuy-building-restful-web-servicenguyenhainhathuy-building-restful-web-service
nguyenhainhathuy-building-restful-web-service
 

More from jgarifuna

Joomla/Mambo CMS
Joomla/Mambo CMSJoomla/Mambo CMS
Joomla/Mambo CMSjgarifuna
 
Joomla/Mambo CMS
Joomla/Mambo CMSJoomla/Mambo CMS
Joomla/Mambo CMSjgarifuna
 
http://www.slideshare.net/jgarifuna/elgg-presentation-ca-032109
http://www.slideshare.net/jgarifuna/elgg-presentation-ca-032109http://www.slideshare.net/jgarifuna/elgg-presentation-ca-032109
http://www.slideshare.net/jgarifuna/elgg-presentation-ca-032109jgarifuna
 
The Elgg Social Networking Framework
The Elgg Social Networking FrameworkThe Elgg Social Networking Framework
The Elgg Social Networking Frameworkjgarifuna
 
Joomla Content Management Systems, Part 3
Joomla Content Management Systems, Part 3Joomla Content Management Systems, Part 3
Joomla Content Management Systems, Part 3jgarifuna
 
Integrating LAMP with Mkahawa Cyber Manager & SQLite
Integrating LAMP with Mkahawa Cyber Manager & SQLiteIntegrating LAMP with Mkahawa Cyber Manager & SQLite
Integrating LAMP with Mkahawa Cyber Manager & SQLitejgarifuna
 
Intro to Quick Web Application Builder (QWAB)
Intro to Quick Web Application Builder (QWAB)Intro to Quick Web Application Builder (QWAB)
Intro to Quick Web Application Builder (QWAB)jgarifuna
 
A practical intro to web development with mongo db and nodejs when, why and ...
A practical intro to web development with mongo db and nodejs  when, why and ...A practical intro to web development with mongo db and nodejs  when, why and ...
A practical intro to web development with mongo db and nodejs when, why and ...jgarifuna
 
A practical intro to web development with mongo db and nodejs when, why and how
A practical intro to web development with mongo db and nodejs  when, why and howA practical intro to web development with mongo db and nodejs  when, why and how
A practical intro to web development with mongo db and nodejs when, why and howjgarifuna
 
Intro to mobile development with sencha touch
Intro to mobile development with sencha touchIntro to mobile development with sencha touch
Intro to mobile development with sencha touchjgarifuna
 
Intro to mobile development with sencha touch
Intro to mobile development with sencha touchIntro to mobile development with sencha touch
Intro to mobile development with sencha touchjgarifuna
 

More from jgarifuna (11)

Joomla/Mambo CMS
Joomla/Mambo CMSJoomla/Mambo CMS
Joomla/Mambo CMS
 
Joomla/Mambo CMS
Joomla/Mambo CMSJoomla/Mambo CMS
Joomla/Mambo CMS
 
http://www.slideshare.net/jgarifuna/elgg-presentation-ca-032109
http://www.slideshare.net/jgarifuna/elgg-presentation-ca-032109http://www.slideshare.net/jgarifuna/elgg-presentation-ca-032109
http://www.slideshare.net/jgarifuna/elgg-presentation-ca-032109
 
The Elgg Social Networking Framework
The Elgg Social Networking FrameworkThe Elgg Social Networking Framework
The Elgg Social Networking Framework
 
Joomla Content Management Systems, Part 3
Joomla Content Management Systems, Part 3Joomla Content Management Systems, Part 3
Joomla Content Management Systems, Part 3
 
Integrating LAMP with Mkahawa Cyber Manager & SQLite
Integrating LAMP with Mkahawa Cyber Manager & SQLiteIntegrating LAMP with Mkahawa Cyber Manager & SQLite
Integrating LAMP with Mkahawa Cyber Manager & SQLite
 
Intro to Quick Web Application Builder (QWAB)
Intro to Quick Web Application Builder (QWAB)Intro to Quick Web Application Builder (QWAB)
Intro to Quick Web Application Builder (QWAB)
 
A practical intro to web development with mongo db and nodejs when, why and ...
A practical intro to web development with mongo db and nodejs  when, why and ...A practical intro to web development with mongo db and nodejs  when, why and ...
A practical intro to web development with mongo db and nodejs when, why and ...
 
A practical intro to web development with mongo db and nodejs when, why and how
A practical intro to web development with mongo db and nodejs  when, why and howA practical intro to web development with mongo db and nodejs  when, why and how
A practical intro to web development with mongo db and nodejs when, why and how
 
Intro to mobile development with sencha touch
Intro to mobile development with sencha touchIntro to mobile development with sencha touch
Intro to mobile development with sencha touch
 
Intro to mobile development with sencha touch
Intro to mobile development with sencha touchIntro to mobile development with sencha touch
Intro to mobile development with sencha touch
 

Recently uploaded

Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 

Recently uploaded (20)

Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 

Introduction to php

  • 1. INTRODUCTION TO PHP by Jorge Garifuna info@GariDigital.com @jgarifuna jgari.com/resume 1
  • 2. WHAT IS PHP? Recursive acronym for PHP: Hypertext Preprocessor Widely-used open source general-purpose scripting language Suited for web development and can be embedded into HTML 2
  • 3. WHEN TO USE PHP 3
  • 4. WHY USE PHP It integrates with everything Best documentation on the web It makes you a Power Hungry Programmer! 4
  • 7. WAYS TO LEARN PHP 1. By writing straight PHP from scratch 2. By using PHP frameworks CakePHP Symfony Zend 3. By using Quick Web Application Builder (QWAB) 7
  • 8. SETTING UP ENVIRONMENT Mac OS (ready or MAMP or ) http://www.coolestguyplanettech.com/how-to-install-php-mysql-apache-on-os-x-10-6/ Windows (XAMPP or WAMP) http://www.apachefriends.org/en/xampp.html Linux Ubuntu: sudo apt-get install php5 mysql-server apache2 CentOS: http://www.howtoforge.com/quick-n-easy-lamp-server-centos-rhel 8
  • 9. TOOLS Text Editor or IDE PSPad netbeans eclipse Database administration phpMyAdmin Sequel Pro MySQL Workbench 9
  • 10. FIRST PHP PROGRAM <?php echo "Hi, I'm a PHP script!"; ?> Save as hello.php on web server 10
  • 11. CONNECTING TO DATABASE <?php if (mysql_connect(DB_SERVER, DB_USER, DB_PASSWORD)){ if (mysql_select_db(DB_NAME)){ return true; } } die("nDB ERROR: " . mysql_error() . "n"); ?>Text 11
  • 12. PROCESSING FORMS file name: myform.html <html> file name: myform.php <body> <form action="myform.php" method="post"> <html> <body> <p>Your Name: Your name is: <input type="text" name="yourname" /><br /> <?php echo $_POST['yourname']; ?><br /> E-mail: <input type="text" name="email" /></p> Your e-mail: <p>Do you like this website? <?php echo $_POST['email']; ?><br /> <input type="radio" name="likeit" <br /> value="Yes" checked="checked" /> Yes <input type="radio" name="likeit" Do you like this website? value="No" /> No <input type="radio" name="likeit" value="Not <?php echo $_POST['likeit']; ?><br /> sure" /> Not sure</p> <br /> <p>Your comments:<br /> Comments:<br /> <textarea name="comments" rows="10" cols="40"></textarea></p> <?php echo $_POST['comments']; ?> <p><input type="submit" value="Send it!"></ </body> p> </html> </form> </body> </html> 12
  • 13. CONNECTING TO FACEBOOK AND TWITTER WITH HYBRIDAUTH http://oyanix.com/opensource/hybridauth/ 13
  • 14. SPEEDING UP PROTOTYPING WITH QUICK WEB APPLICATION BUILDER (QWAB) Generates complete functional web-based applications through a web-based interface in three easy steps Would you like to see it in action? http://garisoft.com/qwab 14
  • 15. HOSTING RESOURCES FOR PHP hostmonster.com hostgator.com godaddy.com 15
  • 16. TRANSFERRING YOUR PHP FILES TO THE SERVER http://filezilla-project.org/ 16
  • 18. SEREMEIN!(THANK YOU!) Jorge Garifuna info@GariDigital.com @jgarifuna jgari.com/resume http://www.meetup.com/LAMPsig 18

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n