PHP & MySQL by Examples Simone Grassi PhD at Trinity College Dublin Research on Software Architectures Distributed Systems Group
[email protected]
PHP Advantages Multiplatform Supports most important Databases Wide set of included functions Many Open Source resources (es: PEAR http:// pear.php.net) Included in many Linux distributions 40% of Internet Domains uses PHP Wide International Community (in 2 clicks from google you find the solution for 99% of problems)
PHP is a scripting language PHP has an HTML-centric approach making easy and fast to develop scripts for the web.
My Example
PHP is Server Side (I) The client doesn't care about PHP, just receive an HTML/JS (or XHTML/CSS/JS) page. The web server work in touch with PHP (usually like a module) and let PHP do the interpretation of the script. The result of the interpretation is sent back to the browser. BENEFITS - Concentrate complexity in the server - Configure only the server to communicate with a third party database (like MySQL) DRAWBACKS - The server must execute all requests - Saving the output pages from the client does not allow to create a real copy of the web site
Test Page Hello World!