php - Developing Web Applications with PHP with RAD for the...

Info iconThis preview shows pages 1–15. Sign up to view the full content.

View Full Document Right Arrow Icon
Developing Web Applications Developing Web Applications with PHP with PHP RAD for the World Wide Web
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Introduction Introduction Netcraft Statistics 20,917,850 domains, 1,224,183 IP addresses
Background image of page 2
Programming Language Popularity Programming Language Popularity
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Introduction Introduction What is PHP? PHP stands for "PHP Hypertext Preprocessor” An embedded scripting language for HTML like ASP or JSP A language that combines elements of Perl, C, and Java
Background image of page 4
Introduction Introduction History of PHP Created by Rasmus Lerdorf in 1995 for tracking access to his resume Originally a set of Perl scripts known as the “Personal Home Page” tools Rewritten in C with database functionality Rewritten again in and released as version 2.0 in November of 1997
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Introduction Introduction History of PHP (cont.) Rewritten again in 1997 by Andi Gutmans and Zeev Suraski – OOP features More functionality added, database support, protocols and APIs The core is rewritten in 1998 by Zeev and Andi and dubbed the “Zend Engine” Version 4.0 released in 2000
Background image of page 6
Introduction Introduction History of PHP (cont.) Version 5.0 includes version 2.0 of the Zend Engine New object model is more powerful and intuitive Objects are no longer passed by value; they now are passed by reference Increases performance and makes OOP more attractive
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Introduction Introduction Performance* Zdnet Statistics PHP about 47 pages/second Microsoft ASP about 43 pages/second Allaire ColdFusion about 29 pages/second Sun Java JSP about 13 pages/second * From PHP HOWTO, July 2001
Background image of page 8
PHP Language Basics PHP Language Basics The Script Tags All PHP code is contained in one of several script tags: <? // Some code ?> <?php // Some code here // This is the preferred method ? >
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
PHP Language Basics PHP Language Basics The Script Tags (cont.) <script language=“PHP"> // Some code here </script> ASP-style tags Introduced in 3.0; may be removed in the future <% // Some code here %>
Background image of page 10
PHP Language Basics PHP Language Basics The Script Tags (cont.) “Echo” Tags <table> <tr> <td>Name:</td><td><?= $name ?></td> </tr> <tr> <td>Address:</td><td><?= $address ?></td> </tr> </table>
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
PHP Language Basics PHP Language Basics Hello World!: An Example Like Perl, there is more than one way <?php echo “Hello World!”; ?> <?php $greeting = “Hello World!” printf(“%s”, $greeting); php?> <script language=“PHP”> $hello = “Hello”; $world = “World!”; print $hello . $world </script>
Background image of page 12
PHP Language Elements PHP Language Elements Variables start with $ followed by name name must start with _ or alphabetic name can contain _ or alphanumeric Operators Arithmetic + - * / % Assignment = += -= Bitwise \& | ^ ~ << >> Comparison == != < > <= >= Logical and or xor ! && ||
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
PHP Language Basics PHP Language Basics Constants, Data Types and Variables
Background image of page 14
Image of page 15
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 81

php - Developing Web Applications with PHP with RAD for the...

This preview shows document pages 1 - 15. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online