SlideShare a Scribd company logo
1 of 20
 
PHP ,[object Object]
PHP is an HTML-embedded Web scripting language.
PHP is an free, open-source server-side scripting language.
[object Object]
This is the most traditional and main target field for PHP.
To know more about php defintion visit  www.phpfordonkeys.com/a719308-php-definition-...
How PHP Works: When a user navigates in her browser to a page that ends with a  .php  extension, the request is sent to a web server, which directs the request to the PHP interpreter.
Basic PHP Syntax : PHP Tags ,[object Object],Depending on the PHP configuration, these tags can take several forms:  <?php   PHP CODE GOES IN HERE ?>   ,[object Object]
HTML OR SCRIPT TAG: <script language=&quot;php&quot;>   PHP CODE GOES IN HERE </script>  ASP-style tags: <% PHP CODE GOES HERE %>
Comments: PHP has two forms of comments: * Single-line comments begin with a double slash (//). * Multi-line comments begin with &quot;/*&quot; and end with &quot;*/&quot;. Syntax // This is a single-line comment /* This is a multi-line comment.*/
Variables: PHP variables begin with a dollar sign ($) as shown below. Syntax: $var_name = &quot;Value&quot;; Each php statement must ends with semicolon.
PHP Functions: There are literally hundreds of built-in PHP functions.  A function might take  zero  arguments or  several  arguments (e.g,  mail(),  which takes three required and two optional arguments). The syntax for calling a function is straightforward: function_name(arguments);
Sample code:PhpBasics/Demos/PhpInfo.php <html> <head> <title>PHPINFO</title> </head> <body> <?php   //Output information on the PHP  environment   phpinfo(); ?> </body> </html>
The php.ini file ,[object Object]
To read PHP, it must be named  'php.ini' .
It allows the user to define some of  the settings for the  PHP interprter .
SYNTAX: ,[object Object]
Whitespace and Lines beginning with a  semicolon are silently ignored. Directives :  directive = value Directive names are* case sensitive *  - foo=bar  is different   from  FOO=bar.
Expressions in the INI file are limited to  bitwise operators   : ,[object Object]

More Related Content

What's hot (20)

Php tutorial
Php tutorialPhp tutorial
Php tutorial
 
Php tutorial
Php  tutorialPhp  tutorial
Php tutorial
 
Php(report)
Php(report)Php(report)
Php(report)
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Introduction to-php
Introduction to-phpIntroduction to-php
Introduction to-php
 
Php ppt
Php pptPhp ppt
Php ppt
 
Beginners PHP Tutorial
Beginners PHP TutorialBeginners PHP Tutorial
Beginners PHP Tutorial
 
Php.ppt
Php.pptPhp.ppt
Php.ppt
 
PHP Project PPT
PHP Project PPTPHP Project PPT
PHP Project PPT
 
Php
PhpPhp
Php
 
IT Club @ NCP - PHP Workshop May 10, 2011
IT Club @ NCP - PHP Workshop May 10, 2011IT Club @ NCP - PHP Workshop May 10, 2011
IT Club @ NCP - PHP Workshop May 10, 2011
 
Php unit i
Php unit iPhp unit i
Php unit i
 
Sending emails through PHP
Sending emails through PHPSending emails through PHP
Sending emails through PHP
 
Php hypertext pre-processor
Php   hypertext pre-processorPhp   hypertext pre-processor
Php hypertext pre-processor
 
Php intro
Php introPhp intro
Php intro
 
Basic php
Basic phpBasic php
Basic php
 
PHP - Introduction to PHP - Mazenet Solution
PHP - Introduction to PHP - Mazenet SolutionPHP - Introduction to PHP - Mazenet Solution
PHP - Introduction to PHP - Mazenet Solution
 
Php Ppt
Php PptPhp Ppt
Php Ppt
 
PHP .ppt
PHP .pptPHP .ppt
PHP .ppt
 
php_tizag_tutorial
php_tizag_tutorialphp_tizag_tutorial
php_tizag_tutorial
 

Viewers also liked

Viewers also liked (7)

Presentación Power Point .
Presentación Power Point .Presentación Power Point .
Presentación Power Point .
 
Amatciems
AmatciemsAmatciems
Amatciems
 
Compare
CompareCompare
Compare
 
3gnin getirileri
3gnin getirileri3gnin getirileri
3gnin getirileri
 
Egipto
EgiptoEgipto
Egipto
 
Linuxs1
Linuxs1Linuxs1
Linuxs1
 
Apache
ApacheApache
Apache
 

Similar to PHP Basics Explained (20)

Php
PhpPhp
Php
 
Php1
Php1Php1
Php1
 
Php
PhpPhp
Php
 
Php1
Php1Php1
Php1
 
Php1(2)
Php1(2)Php1(2)
Php1(2)
 
Php
PhpPhp
Php
 
Php
PhpPhp
Php
 
PHP.docx
PHP.docxPHP.docx
PHP.docx
 
Php notes
Php notesPhp notes
Php notes
 
PHP Lesson
PHP LessonPHP Lesson
PHP Lesson
 
PHP
PHPPHP
PHP
 
Php
PhpPhp
Php
 
Php
PhpPhp
Php
 
Php
PhpPhp
Php
 
PHP Basic & Variables
PHP Basic & VariablesPHP Basic & Variables
PHP Basic & Variables
 
Chap 4 PHP.pdf
Chap 4 PHP.pdfChap 4 PHP.pdf
Chap 4 PHP.pdf
 
Article 01 What Is Php
Article 01   What Is PhpArticle 01   What Is Php
Article 01 What Is Php
 
Php mysql
Php mysqlPhp mysql
Php mysql
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
php basics
php basicsphp basics
php basics
 

Recently uploaded

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
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.pptxEarley Information Science
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
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...Neo4j
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
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 WorkerThousandEyes
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
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 MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
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...Igalia
 

Recently uploaded (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
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...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
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
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
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...
 

PHP Basics Explained

  • 1.  
  • 2.
  • 3. PHP is an HTML-embedded Web scripting language.
  • 4. PHP is an free, open-source server-side scripting language.
  • 5.
  • 6. This is the most traditional and main target field for PHP.
  • 7. To know more about php defintion visit www.phpfordonkeys.com/a719308-php-definition-...
  • 8. How PHP Works: When a user navigates in her browser to a page that ends with a .php extension, the request is sent to a web server, which directs the request to the PHP interpreter.
  • 9.
  • 10. HTML OR SCRIPT TAG: <script language=&quot;php&quot;> PHP CODE GOES IN HERE </script> ASP-style tags: <% PHP CODE GOES HERE %>
  • 11. Comments: PHP has two forms of comments: * Single-line comments begin with a double slash (//). * Multi-line comments begin with &quot;/*&quot; and end with &quot;*/&quot;. Syntax // This is a single-line comment /* This is a multi-line comment.*/
  • 12. Variables: PHP variables begin with a dollar sign ($) as shown below. Syntax: $var_name = &quot;Value&quot;; Each php statement must ends with semicolon.
  • 13. PHP Functions: There are literally hundreds of built-in PHP functions. A function might take zero arguments or several arguments (e.g, mail(), which takes three required and two optional arguments). The syntax for calling a function is straightforward: function_name(arguments);
  • 14. Sample code:PhpBasics/Demos/PhpInfo.php <html> <head> <title>PHPINFO</title> </head> <body> <?php //Output information on the PHP environment phpinfo(); ?> </body> </html>
  • 15.
  • 16. To read PHP, it must be named 'php.ini' .
  • 17. It allows the user to define some of the settings for the PHP interprter .
  • 18.
  • 19. Whitespace and Lines beginning with a semicolon are silently ignored. Directives : directive = value Directive names are* case sensitive * - foo=bar is different from FOO=bar.
  • 20.
  • 23. !-boolean NOT Boolean flags can be turned on using the values 1, On, True or Yes. They can be turned off using the values 0, Off, False or No.
  • 24.
  • 25.
  • 26. All Public variables and functions do not start with underscore &quot;_&quot; like var $myvar;
  • 27. All variables and functions always start with lowercase letter (no uppercase) like var $_myvar; and NOT like var $_Myvar;
  • 28.
  • 30. Temporary directory for HTTP uploaded files (will use system default if not specified).
  • 31.
  • 32. upload_tmp_dir =Maximum allowed size for uploaded files.
  • 35.
  • 36. PHP will NOT give the performance of &quot;C&quot; or &quot;C++&quot; language. Because it is scripting language and is interpreted it will be a bit slower than the optimized &quot;C++&quot; programs.
  • 37.
  • 38. PHP applications are very stable and do not depend on the browser technologies unlike Javascript applications which depend on browsers.
  • 39. PHP will give you the freedom to select any server platform.
  • 40.
  • 41. PHP has C++, PERL, Javascript like syntax features and has programs like 'ptags/ctags' to navigate the source code
  • 42. PHP runs on all UNIX'es, linux, Windows 95/NT/2000 and is more powerful than ASP, JSP and others.
  • 43. PHP has a very large user base and developer base.
  • 44.