1 / 17

NEW JERSEY INSTITUTE OF TECHNOLOGY IS373 – INTRODUCTION TO WEB STANDARDS P H P

NEW JERSEY INSTITUTE OF TECHNOLOGY IS373 – INTRODUCTION TO WEB STANDARDS P H P. BY: ALBERTO CABEZAS 4/19/2010. INTRODUCTION :. PHP is considered today as one of the most famous scripting languages.

machiko-rin
Télécharger la présentation

NEW JERSEY INSTITUTE OF TECHNOLOGY IS373 – INTRODUCTION TO WEB STANDARDS P H P

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. NEW JERSEY INSTITUTE OF TECHNOLOGYIS373 – INTRODUCTION TO WEB STANDARDSP H P BY: ALBERTO CABEZAS 4/19/2010

  2. INTRODUCTION: PHPis considered today as one of the most famous scripting languages. PHP is widely used as a general purpose scripting language, especially for web development. PHPhas gained very good popularity and its community is increasing very fast.

  3. What is PHP? • PHP stands for PHP: Hypertext Pre-processor. • PHP is a programming language that allows web developers to create dynamic contact that interacts with databases. • Within an HTML page, you can embed PHP code that will be executed each time the page is visited. • Your PHP code is intercepted at the Web server and generates HTML or other output that the visitor will see.

  4. HISTORY OF PHP • 1994 - PHP was written in the C programming language by RasmusLerdorffor use in monitoring his online resume and related personal information. For this reason, PHP originally stood for “Personal Home Page” • 1995- Lerdorf combined PHP with his own Form Interpreter, releasing the combination publicly as PHP/FI (generally referred to as PHP 2.0) • 1997- ZeevSuraskiand AndiGutmans, rebuilt PHP's core, releasing the updated result as PHP/FI 2and the acronym was formally changed to PHP: HyperTextPreprocessor.

  5. HISTORY OF PHP • 1998 - PHP 3 was released, which was the first widely used version. • 2000 - PHP 4 was released with a new core, known as the Zend Engine 1.0. PHP 4 featured improved speed and reliability over PHP 3. • 2004- PHP 5 was released with the updated Zend Engine 2.0. PHP 5 improved object-oriented programming, embedded SQLite, support for new MySQL features, integrated SOAP support, and much more.

  6. HISTORY OF PHP • 2006 - PHP 6 has been in development since October of 2006. The most significant change will be native support for Unicode. Unpopular, deprecated features such as Magic Quotes, register_globals, safe_mode, and the HTTP_*_VARS variables will disappear in PHP 6. • Today is still in use PHP 5 and Zend Technologies, Inc updates new versions but part of PHP 5 (5.1, etc)

  7. SPECIFICATIONS OF PHP • PHP is an open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. • Instead of lots of commands to output HTML, PHP pages contain HTML with embedded code that does “something” (in this case, output “HI HOW ARE YOU”). <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"    "http://www.w3.org/TR/html4/loose.dtd"><html>    <head>        <title>Example</title>    </head>    <body><?php echo "HI HOW ARE YOU!";?>    </body></html>

  8. HOW PHP GENERATES HTML/JS WEB PAGES • Client’s browser sends an HTTP request (with POST/GET variables) • Apache recognizes that a PHP script is requested and sends that request to PHP module. • PHP interpreter executes PHP script, collects script output and sends it back. • Apache replies to client using the PHP script output just created as the actual HTML output on client’s screen. CLIENT BROWSER APACHE PHP MODULE

  9. Basic PHP syntax • PHP scripting block always starts with <?phpand ends with ?>. • The PHP scripting block can be place anywhere in the document. • A PHP file normally contains HTML tags, just like an HTML file and some PHP scripting code. • Each code line in PHP must end with a semicolon ; • There are two basic statements to output text with PHP: echo and print. • The PHP file must have a .phpextension.

  10. EXAMPLE OF PHP FILE <html><body><?phpecho"Hello World";?></body> </html>

  11. Basic PHP syntax • in the previous example we used the echo statement to output the text “Hello World”. • To make comments in PHP we use // to make a single-line comment or /* and */ to make a large comment block. • Variables in PHP are use to storing values, like text strings, numbers or arrays. • All variables in PHP start with a $ sign symbol. • PHP uses many operators to operate on values like +, -, *, /, %, and much more.

  12. ADVANTAGES OF PHP • PHP is an open source (FREE). • Reduce the time to create large websites. • Open up thousands of possibilities for online tools. • PHP is a cross-platform compatible. • PHP is object oriented. • Supports wide range of Databases. • It is very useful text processing features, and wide variety of outputs styles. • Training is available online and it is very easy to learn.

  13. DISADVANTAGES OF PHP • the misperception on lack of support, that there in none, only online community. • there are some issues on security. For this reason was founded in January 2005, the “PHP Security Consortium” (PHPSC) an international group of PHP experts dedicated to promoting secure programming practices within the PHP community. • Other disadvantage of PHP is that has no formal error handling mechanisms, it is a little tricky to debug

  14. USAGE OF PHP SINCE 1998PHP has more than 20,917,850 domains and 1,224,183 IP addresses.

  15. COMMON USES OF PHP • PHP is very popular for the use in security systems, especially in sites with heavy dependence on database, administrative applications and E-commerce. • PHP is used for dynamically changing websites, homepages, templates, and many more uses. • PHP can be used for different activities as collect form data, generate dynamic page content, or send and receive cookies.

  16. PHP is prevalent in the industry today

  17. CONCLUSION • PHP is a very popular and useful programming language. • PHP has been used for programmers in different ways. • The fact that PHP is an open source, gives a lot of access to many people, this contribute to its popularity. • This standard is very good in many aspects, and as we see has some disadvantages, however the advantages are more that programmers can work with them and make a very useful tool. • We see that PHP has been chosen by many programmers and the statistics show us this reality.

More Related