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

Create dynamic sites with PHP & MySQL
Create dynamic sites with PHP & MySQLCreate dynamic sites with PHP & MySQL
Create dynamic sites with PHP & MySQL
kangaro10a
 
Mambo (2006) Presentation on CMS
Mambo (2006) Presentation on CMSMambo (2006) Presentation on CMS
Mambo (2006) Presentation on CMS
John Patten
 
Integration Test Cucumber + Webrat + Selenium
Integration Test Cucumber + Webrat + SeleniumIntegration Test Cucumber + Webrat + Selenium
Integration Test Cucumber + Webrat + Selenium
tka
 
Tutorial PHP and Dreamweaver CS3
Tutorial PHP and Dreamweaver CS3Tutorial PHP and Dreamweaver CS3
Tutorial PHP and Dreamweaver CS3
Halizah Ahmad
 

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

Cara membuat email yahoo indonesia
Cara membuat email yahoo indonesiaCara membuat email yahoo indonesia
Cara membuat email yahoo indonesia
Samsul Hadi
 
Food Production, Nutrition and Environmental Effects
Food Production, Nutrition and Environmental EffectsFood Production, Nutrition and Environmental Effects
Food Production, Nutrition and Environmental Effects
Michael 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_digital
Lorena Brondani
 
Curriculum de Sara Lopez-Figueredo
Curriculum de Sara Lopez-FigueredoCurriculum de Sara Lopez-Figueredo
Curriculum de Sara Lopez-Figueredo
Sara Lopez
 
Grua puente
Grua puenteGrua puente
Grua puente
michael
 

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

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
Noushadur Shoukhin
 
nguyenhainhathuy-building-restful-web-service
nguyenhainhathuy-building-restful-web-servicenguyenhainhathuy-building-restful-web-service
nguyenhainhathuy-building-restful-web-service
hazzaz
 

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
 
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
 
Php My SQL Tutorial | beginning
Php My SQL Tutorial | beginningPhp My SQL Tutorial | beginning
Php My SQL Tutorial | beginning
 
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 CMS
jgarifuna
 
Joomla/Mambo CMS
Joomla/Mambo CMSJoomla/Mambo CMS
Joomla/Mambo CMS
jgarifuna
 
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
jgarifuna
 
Joomla Content Management Systems, Part 3
Joomla Content Management Systems, Part 3Joomla Content Management Systems, Part 3
Joomla Content Management Systems, Part 3
jgarifuna
 
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
jgarifuna
 
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 how
jgarifuna
 
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
jgarifuna
 
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
jgarifuna
 

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

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Recently uploaded (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

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