php - PHPIntroduction Bill Jerome PHPHypertextPreprocessor...

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

View Full Document Right Arrow Icon
    PHP Introduction Bill Jerome
Background image of page 1

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

View Full DocumentRight Arrow Icon
PHP Hypertext Preprocessor No joke, that’s what it stands for Now very widely used for websites Only three years ago it was considered a risky alternative for development Has a lot of community support Is developed by hackers (see name) Is hacky
Background image of page 2
PHP  Hacky, but (also?) very c-like Classes, etc., work very much like c/c++ Designed to work in the world of HTML Is run-time interpreted by the web server Exception: those running Zend Cache We sure won’t be Reminder: it’s hacky
Background image of page 3

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

View Full DocumentRight Arrow Icon
Simple PHP PHP is meant to be invoked inline with content Page “escapes” into and out of a regular html document File extension is .php (was .php3 for version 3) Initial use was control flow and simple scripting
Background image of page 4
A quick example <html> <head>Test page</head> <body> The time is now <?php echo date(); ?> <hr> </body> </html>
Background image of page 5

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

View Full DocumentRight Arrow Icon
A quick example <html> <head>Test page</head> <body> The time is now <?php here we “jump into” php echo date(); ?> here we “jump” back out <hr> </body> </html>
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/23/2011 for the course ENCS ENCS5 taught by Professor Abdelsalam during the Spring '10 term at Birzeit University.

Page1 / 17

php - PHPIntroduction Bill Jerome PHPHypertextPreprocessor...

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

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