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

Php(report)
Php(report)Php(report)
Php(report)
Yhannah
 
Beginners PHP Tutorial
Beginners PHP TutorialBeginners PHP Tutorial
Beginners PHP Tutorial
alexjones89
 
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
IT Club GTA
 
Php hypertext pre-processor
Php   hypertext pre-processorPhp   hypertext pre-processor
Php hypertext pre-processor
Siddique Ibrahim
 

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 Php1 (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

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
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
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
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
 
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...
 
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
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
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
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
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...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
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
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
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
 
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...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
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
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
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
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 

Php1

  • 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.