• Home Page
  • BFH courses
  • Other courses
  • BFH Courses
  • CS Basics (MedInf)
  • Web Security
  • Operating Systems

Examples: PHP, a language for the web

Download all these examples in one file: phpWeb.zip

Forms, cookies, sessions, http optimization.

Submit the content of a form (source)
Submit the content of another form (source)
Send a cookie (source)
Get the value of all the received cookies (source)

Session handling:

Use a session to create a counter (source)--See the new cookie
remember the username (source)
and this script remembers it (source)

Play with HTTP Header :

Read the prefered languages from a browser (source). This second example works with $_SERVER instead of getallheaders(): Read the prefered languages from a browser (source)
Displays an image with a php programm (source)
A better version (source)

Related Pages

  • Home
  • Slides
  • Exemples
  • Exercices
  • Resources

Contact

Prof. Dr. Emmanuel Benoist
Berner Fachhochschule - TI
Quellgasse 21
CH-2501 Biel/Bienne
Switzerland
Mail: emmanuel.benoist (at) bfh.ch

Social Networks

Follow me on
Linkedin, Scholar & Research gate

http://www.ti.bfh.ch/

BACK TO TOP © 2014-2021 Emmanuel Benoist