1 / 15

Web Page Design with PHP

Web Page Design with PHP. Mozafar Bag-Mohammadi. Outline. مفاهیم url و http dns HTML Tag ها، لیست ، جدول و فرم صفحه آرایی و تنظیم وب PHP کلیات، نصب و راه اندازی سرور ساختارهای کنترلی و آرایه سازماندهی برنامه ها و استفاده مجدد ارتباط با بانک اطلاعاتی. ساختار درس. نمره دهی:

tallis
Download Presentation

Web Page Design with PHP

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. Web Page Design with PHP Mozafar Bag-Mohammadi

  2. Outline • مفاهیم • url و http • dns • HTML • Tag ها، لیست ، جدول و فرم • صفحه آرایی و تنظیم وب • PHP • کلیات، نصب و راه اندازی سرور • ساختارهای کنترلی و آرایه • سازماندهی برنامه ها و استفاده مجدد • ارتباط با بانک اطلاعاتی

  3. ساختار درس • نمره دهی: • امتحان 70% • کوییز 5% • تمرین 15% • پروژه 15% • کتاب: • اصول طراحی و برنامه نویسی تحت وب- جعفر نژاد قمی

  4. URI: Universal Resource Identifier • Absolute URI: scheme://hostname[:port]/path http://www.cs.rpi.edu:80/blah/foo • Relative URI: /path /blah/foo No server mentioned

  5. HTTP Usage • HTTP is the protocol that supports communication between web browsers and web servers. • A “Web Server” is a HTTP server • Most clients/servers today speak version 1.1, but 1.0 is also in use.

  6. HTTP • HTTP has a simple structure: • client sends a request • server returns a reply. • HTTP can support multiple request-reply exchanges over a single TCP connection.

  7. Well Known Address • The “well known” TCP port for HTTP servers is port 80. • Other ports can be used as well...

  8. Request-Line Headers . . . blank line Content... HTTP 1.0+ Request • Lines of text (ASCII). • Lines end with CRLF “\r\n” • First line is called “Request-Line”

  9. Methods • GET: retrieve information identified by the URI. • HEAD: retrieve meta-information about the URI. • POST: send information to a URI and retrieve result.

  10. Example GET Request GET /~hollingd/testanswers.html HTTP/1.1 Accept: */* Host: www.cs.rpi.edu User-Agent: Internet Explorer From: cheater@cheaters.org There is a blank line here!

  11. Example POST Request POST /~hollingd/changegrade.cgi HTTP/1.1 Accept: */* Host: www.cs.rpi.edu User-Agent: SecretAgent V2.3 Content-Length: 35 Referer: http://monte.cs.rpi.edu/blah stuid=6660182722&item=test1&grade=99

  12. HTTP Response Status-Line Headers . . . • ASCII Status Line • Headers Section • Content can be anything (not just text) • typically an HTML document or some kind of image. blank line Content...

  13. Root DNS Servers TLD Servers ca DNS servers edu DNS servers com DNS servers usask.ca DNS servers poly.edu DNS servers ucalgary.ca DNS servers amazon.com DNS servers umass.edu DNS servers yahoo.com DNS servers Distributed, Hierarchical Database • Root servers and TLD servers typically do not contain hostname to IP mappings; they contain mappings for locating authoritative servers.

  14. TLD and Authoritative Servers • Top-level domain (TLD) servers: responsible for com, org, net, edu, etc, and all top-level country domains uk, fr, ca, jp. • Network solutions maintains servers for com TLD • Educause for edu TLD • Authoritative DNS servers: organization’s DNS servers, providing authoritative hostname to IP mappings for organization’s servers (e.g., Web and mail). • Can be maintained by organization or service provider

  15. Host at cis.poly.edu wants IP address for gaia.cs.umass.edu Infrastructure: Client resolver Local DNS server Authoritative DNS Server Root DNS Server Top-Level Domain DNS Server local DNS server dns.poly.edu DNS Infrastructure root DNS server 2 3 TLD DNS server 4 5 6 7 1 8 authoritative DNS server dns.cs.umass.edu requesting host cis.poly.edu gaia.cs.umass.edu

More Related