Re: Issue 4 in foss-lab-manual: PHP

27 views
Skip to first unread message

foss-la...@googlecode.com

unread,
Jul 12, 2011, 10:36:27 PM7/12/11
to foss-lab-...@googlegroups.com

Comment #3 on issue 4 by vijayku...@bravegnu.org: PHP
http://code.google.com/p/foss-lab-manual/issues/detail?id=4

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 ...

foss-la...@googlecode.com

unread,
Jul 13, 2011, 1:48:43 AM7/13/11
to foss-lab-...@googlegroups.com

Comment #4 on issue 4 by viky.nan...@gmail.com: PHP
http://code.google.com/p/foss-lab-manual/issues/detail?id=4

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

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 :)

Reply all
Reply to author
Forward
0 new messages