Examples: Miscelaneous
Download all these examples in one file: divers.zipPDF 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 aforeach 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 servicesCreate 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
Contact
Prof. Dr. Emmanuel Benoist
Berner Fachhochschule - TI
Quellgasse 21
CH-2501 Biel/Bienne
Switzerland
Mail: emmanuel.benoist (at) bfh.ch
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