Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 2.03 KB

Week-02-notes.md

File metadata and controls

35 lines (25 loc) · 2.03 KB

Week 2: Introduction to PHP

  • This week we will continue to look at web server scripting, and will cover enough server-side programming (PHP) to make you dangerous :-)
  • Later on in the semester we will revisit PHP and use it to create our own customized web service.

I. PHP - What is it?

PHP originally stood for Personal Home Page, but it now stands for the recursive "backronym" PHP: Hypertext Preprocessor. PHP code may be embedded into HTML code, or it can be used in combination with various web template systems, web content management systems, and web frameworks. -- https://en.wikipedia.org/wiki/PHP

II. PHP - What can it do?

Anything. PHP is mainly focused on server-side scripting, so you can do anything any other CGI program can do, such as collect form data, generate dynamic page content, or send and receive cookies. But PHP can do much more. - http://php.net/manual/en/intro-whatcando.php

  • PHP can also be used to write command-line programs
  • It can also be used for "Screen Scraping" - which is downloading and parsing web pages and other files
  • One of PHP's most powerful features is its support for a wide variety of databases
  • PHP also has support for talking to other web-related services using protocols such as LDAP, IMAP, SNMP, NNTP, POP3 and HTTP. This week we will use PHP to send email via a "Contact Us" form (which is the SMTP - "Simple Mail Transfer Protocol")

III. Presentation

PHP-1-Lecture.pdf

IV. Reading Assignments & Exercises

See the mycourses dropboxes for due dates.



<-- Back to IGME-230 Schedule