SlideShare a Scribd company logo
 
PHP PHP Stands for " Hypertext   Preprocessor ."
PHP is an HTML-embedded Web scripting language.
PHP is an free, open-source server-side scripting language.
PHP is a server-side scripting language for creating dynamic Web pages.
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 PHP code must be contained in special tags so that the PHP interpreter can identify it.  Depending on the PHP configuration, these tags can take several forms:  <?php   PHP CODE GOES IN HERE ?>   It is known as the XML style, because it can be used inside of an XML document.
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 The php.ini is the main PHP  configuration file .  php.ini file controls many aspect  of php's behavior.
To read PHP, it must be named  'php.ini' .
It allows the user to define some of  the settings for the  PHP interprter .
SYNTAX: The syntax of the file is extremely  simple.
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   : |- bitwise OR

More Related Content

PPTX
PHP tutorial | ptutorial
PDF
Php tutorial
PPTX
Software Design
PPSX
PHP tutorial | ptutorial
Php tutorial
Software Design

What's hot (20)

DOC
Php tutorial
PPT
Php(report)
PPT
Introduction to php
PPTX
Introduction to-php
PPT
PPT
Beginners PHP Tutorial
PPT
PHP Project PPT
PPT
IT Club @ NCP - PHP Workshop May 10, 2011
PPTX
Php unit i
PDF
Sending emails through PHP
PPT
Php hypertext pre-processor
PPTX
Php intro
PDF
Basic php
PPT
PHP - Introduction to PHP - Mazenet Solution
PPT
Php Ppt
PPTX
PHP .ppt
PDF
php_tizag_tutorial
Php tutorial
Php(report)
Introduction to php
Introduction to-php
Beginners PHP Tutorial
PHP Project PPT
IT Club @ NCP - PHP Workshop May 10, 2011
Php unit i
Sending emails through PHP
Php hypertext pre-processor
Php intro
Basic php
PHP - Introduction to PHP - Mazenet Solution
Php Ppt
PHP .ppt
php_tizag_tutorial
Ad

Viewers also liked (7)

PPT
Presentación Power Point .
PPS
Amatciems
PPT
3gnin getirileri
PPT
Egipto
ODP
Linuxs1
ODP
Apache
Presentación Power Point .
Amatciems
3gnin getirileri
Egipto
Linuxs1
Apache
Ad

Similar to Php1 (20)

ODP
Php1(2)
ODP
Php1
PPT
PPTX
php basics
PPTX
introduction to php and its uses in daily
DOC
Article 01 What Is Php
PPT
Php Ppt
PPT
Internet Technology and its Applications
PPT
PHP - Introduction to PHP Fundamentals
PPT
PPT
Introduction To Php For Wit2009
DOCX
PHP Lesson
PPT
PPT
PPT
PPT
PPT
Introduction to PHP
PDF
PHP in Web development and Applications.pdf
Php1(2)
Php1
php basics
introduction to php and its uses in daily
Article 01 What Is Php
Php Ppt
Internet Technology and its Applications
PHP - Introduction to PHP Fundamentals
Introduction To Php For Wit2009
PHP Lesson
Introduction to PHP
PHP in Web development and Applications.pdf

Recently uploaded (20)

PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Advanced IT Governance
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Approach and Philosophy of On baking technology
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
NewMind AI Weekly Chronicles - August'25 Week I
20250228 LYD VKU AI Blended-Learning.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Advanced IT Governance
NewMind AI Monthly Chronicles - July 2025
Approach and Philosophy of On baking technology
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Unlocking AI with Model Context Protocol (MCP)
Understanding_Digital_Forensics_Presentation.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
How UI/UX Design Impacts User Retention in Mobile Apps.pdf

Php1

  • 1.  
  • 2. PHP PHP Stands for &quot; Hypertext Preprocessor .&quot;
  • 3. PHP is an HTML-embedded Web scripting language.
  • 4. PHP is an free, open-source server-side scripting language.
  • 5. PHP is a server-side scripting language for creating dynamic Web pages.
  • 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. Basic PHP Syntax : PHP Tags PHP code must be contained in special tags so that the PHP interpreter can identify it. Depending on the PHP configuration, these tags can take several forms: <?php PHP CODE GOES IN HERE ?> It is known as the XML style, because it can be used inside of an XML document.
  • 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. The php.ini file The php.ini is the main PHP configuration file . php.ini file controls many aspect of php's behavior.
  • 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. SYNTAX: The syntax of the file is extremely simple.
  • 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. Expressions in the INI file are limited to bitwise operators : |- bitwise OR
  • 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. OBJECT ORIENTED FEATURES: PHP scripting language provides object oriented features through the class keyword. We can use the following coding conventions to distinguish between private, public and protected variables: All private variables and functions always start with underscore &quot;_&quot; followed by lowercase letters like var $_myvar;
  • 25. All Protected variables and functions always start with &quot;_T&quot; followed by lowercase letters like var $_Tmyvar
  • 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. File Uploads: To allow HTTP file uploads.
  • 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. Limitations of PHP : PHP is NOT 100 % pure Object Oriented scripting language. But in near future PHP may support 100% object oriented scripting.
  • 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. Advantages: We can very rapidly develop web applications in PHP as compile and link is eliminated in PHP scripting language.
  • 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. PHP has excellent database conectivity to all SQL database servers.
  • 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.