Introduction to PHP
Teaching technique to be used;
Class Slides Examples Labs Assignments
We will look on;
Variables Strings Arrays Control Statements
If, Switch Statements
Write a PHP program to find the sum of 3 integers entered by the user. Use Wamp Server/Xampp
What is it?
Taken directly from PHP's home, PHP.net, "PHP is an HTML-embedded scripting language.
Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly!!
What is it?
When someone visits your PHP webpage, your web server processes the PHP code.
It then sees which parts it needs to show to visitors(content and pictures).
hides the other stuff(file operations, math calculations, etc.) then translates your PHP into HTML.
After the translation into HTML, it sends the webpage to your visitor's web browser.
What's it does?
It is also helpful to think of PHP in terms of what it can do for you. PHP will allow you to: Reduce the time to create large websites. Create a customized user experience for visitors based on information that you have gathered from them. Open up thousands of possibilities for online tools. Check out PHP.
HotScripts for examples of the great things that are possible with PHP.
Allow creation of shopping carts for e-commerce websites.
Client – a person using the application.
Server – A computer to serve the needs and requests of other programs or clients.
Database – Used for data storage
Basic programming knowledge. This isn't required, but if you have any traditional programming experience it will make learning PHP a great deal...