20-cg3-An Introduction to PHP

20-cg3-An Introduction to PHP - An Introduction to PHP Mary...

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

View Full Document Right Arrow Icon
An Introduction to PHP Mary ET Boyle, Ph.D. Department of Cognitive Science UCSD
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 is… A programming scripting language It is used to extend XHTML Used to create dynamic Web applications
Background image of page 2
Rasmus Lerdof created it in 1994 Personal Home Page Apache Software Foundation project Open source software (OSS) PHP Hypertext Preprocessor
Background image of page 3

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

View Full DocumentRight Arrow Icon
Why learn it? Easy to use Open source http://www.apache.org Multiple platforms Language support for databases (MySQL, Informix, Oracle, and Sybase)
Background image of page 4
Internet-connected web browser icogsci1.ucsd.edu/~cg3xzz/funstuff.php User enters Web address to PHP file Web server Receive request, find file, read it. Execute PHP statements Send results back Receive and interpret HTML file
Background image of page 5

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

View Full DocumentRight Arrow Icon
Not all web servers Run software with built-in PHP Check with your ISP before your sign a contract. You can install it on your machine (not for novices to do this) Use version PHP 4.0 or greater phpinfo()
Background image of page 6
Background image of page 7

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

View Full DocumentRight Arrow Icon
first.php <?PHP print (“A simple initial script”); ?> <script language=“PHP”> print (“A simple initial script”); </script> Don’t forget the extension.
Background image of page 8
Pairs— quotation marks, parenthesis, brackets, etc. all need to be paired. Semi-colons—
Background image of page 9

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

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 24

20-cg3-An Introduction to PHP - An Introduction to PHP Mary...

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

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