satyaakam / foss-lab-manual

Automatically exported from code.google.com/p/foss-lab-manual
1 stars 0 forks source link

PHP #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Running PHP : simple applications like login forms after setting up a LAMP stack

Original issue reported on code.google.com by tshrinivasan on 5 Mar 2011 at 6:06

GoogleCodeExporter commented 9 years ago

Original comment by tshrinivasan on 5 Mar 2011 at 6:15

GoogleCodeExporter commented 9 years ago

Original comment by tshrinivasan on 5 Mar 2011 at 6:24

GoogleCodeExporter commented 9 years ago
I suggest the following examples for each PHP session.

PHP - 1

1. Hello World, from http://www.php.net/manual/en/tutorial.firstpage.php
2. PHP System Information, from 
http://www.php.net/manual/en/tutorial.firstpage.php

PHP - 2

1. Printing a Variable, from http://www.php.net/manual/en/tutorial.useful.php
2. Example using control structures and functions, from 
http://www.php.net/manual/en/tutorial.useful.php

PHP - 3

1. HTML forms and printing form data, from 
http://www.php.net/manual/en/tutorial.forms.php

PHP - 4

1. MySQL database application - Similar to the accounts application in python 
lab session.

PHP - 5

1. Some simple assignment ...

Original comment by bravegnu on 13 Jul 2011 at 2:35

GoogleCodeExporter commented 9 years ago
Vijay,

Thanks for the suggestion :) I'm working on it. I've prepared the first 4 
sessions with the topics split as follows:

PHP - 1

1. Hello World, from http://www.php.net/manual/en/tutorial.firstpage.php
2. PHP System Information, from 
http://www.php.net/manual/en/tutorial.firstpage.php
3. String manipulation: Printing number of words in the string (just for an 
exposure to in-built functions in PHP)
4. Basic form handling: Printing the form data (in the same page)

PHP - 2 (php-1.txt in the last commit)

1. Generating a form using PHP (control structures for drop-down list)
2. Getting the form data and inserting into mysql database

PHP - 3

1. Validating form data using regular expressions
2. Sending back the error details to form page and printing them

PHP - 4

1. Generating a login form
2. Fetching data from database and matching with user data

PHP - 5

Not yet come up with any exact idea. I guess a simple assignment will be good.

The way i organised the topics was with the intention of having coherence among 
the sessions, rather than typical sample exercises. Feedbacks are welcome :)

Original comment by viky.nan...@gmail.com on 13 Jul 2011 at 5:47