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

Examples: Miscelaneous

Download all these examples in one file: divers.zip

PDF Generation (fpdf library)

Create a first page (Source)
Insert a header and a footer (Source)
Add color in the document (Source)
We can use columns (Source)
Create tables (basic and more complicated) (Source)
Insert links in a document (Source)
Use a new font (Calligrapher) (Source)

Image Generation

Tests supported formats (Source)
Write a text over a picture (source)
Draw a barcode - EAN13 (source)

Authorization

Using HTTP authorization scheme (Source)
login in the system username=bie password=bie (Source)
Logout (Source)

Templates / Smarty

First exemple we set variables, and a foreach loop, plus we have a if (Source, template)
Second exemple we use a template that requires other templates; a config file, variable modifyer (to-upercase) (Source, Main template, Header template, Footer template, config file)
The smarty official example. (Source, Template, Template footer, Template header)

Web Services

A directory for web services
Create a connection to a Web Service - view all methods (Source)
Translate a phrase - german to french (Source)
Send a SMS (does not work) (Source)
View your horoscope (Source)
Debug Soap Request and Response (Source)

XML

Examples

Traverse a tree recursively (The source code is available here)

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