Anda di halaman 1dari 10

php training plan - Sheet1

Doc Type: Training Schedule

php training plan - PHP - 5.2

Concepts

Problem Sets 1. Build Pascal Triangle http://en.wikipedia.org/wiki/Pascal's_triang 2. Flames 3. http://en.wikipedia.org/wiki/Dijkstra's_algorithm

Go through basic php syntax, Expressions, 1 Operators, Control Structures and Functions Go through Date, Time, Arrays and String 2 functions

Go through Classes, objects, inheritance and 3 Exception Handling

4 Regular expressions

5 Database API 6 UTF-8 encoding and decoding

Convert the time duration into readable way like 2hours, 3minute etc For example, If I pass time stamp as 100000000 to your function, it years, 2 months, 19 hours, 22 minutes, 16 seconds. Implement a functionaly to calculate the area of some region. The re square, circle, triangle. If I pass dimentions and region type then it s area value. Implement this using classes and objects. Your code shou the Exceptions related to proper dimention values. Convert urls in the string to links. Suppose if I pass "Please ch http://www.goolge.com/" as argument it should return "Please <a href='http://www.google.com/' target='_new'>http://www.go The function has to work with all type of urls. Create a CSV file which is having information about Employee datamodel for Employee system. You need to use mysql. Afte model has been created, write a php script that will parses thr and load them into the database. Your php script must log info we can check the status of the database operations that are d Write a program which is find out the length of a string which i characters.

php training plan - PHP - 5.2

References How FLAMES works F = Friends L = Lovers A = Ancestors M = Married E = Enemy S = Sister Take the name of 2 persons. SANTY SUNNY Strike out the chars which are common in both the names which means S, N and Y will be removed from both the names. The remaining chars are ATUN Now count the total numbers which is 4. Parse through the word FLAMES and strike count the char which comes at 4. It means first, M should be striked. Then the next count should start from E and again strike out when you read end. So next time, L should be removed. This should be continued until you have 1 last character. Based on the above acronym for each character, print the relationship between the 2 persons. NOTE: The names should be taken as input by user.

ki/Pascal's_triangle

http://in2.php.net/manual/e http://www.w3schools.com

ours, 3minute etc.. your function, it should return 3

http://in2.php.net/manual/e

me region. The region may be ion type then it should return the s. Your code should also handle

http://in2.php.net/manual/e

pass "Please check this url return "Please check this url >http://www.google.com</a>" .

about Employee details. Build a use mysql. After the data t will parses through the csv ipt must log information so that tions that are done. a string which is having utf8

php training plan - PHP - 5.2

php.net/manual/en/index.php w.w3schools.com/PHP/DEfaULT.asP

php.net/manual/en/index.php

php.net/manual/en/index.php

php training plan - PHP - 5.2

Convert an array into object. if I pass array('first value', 'second value', 3, 4) as input the output should be an object lets say obj1 then obj1->0 shou value', obj1->1 should print 'second value' etc..

7 OOPS

If I pass array( 'me' => 'Sebastian', 'you' => 'Anonymous', 'he' => 'Bill' ); As input it should return object lets say obj2 then obj2->me sh 'Sebastian' obj2->you should have value 'Anonymous' like tha http://news.google.com/news?pz=1&ned=us&hl=en&topic=t&o

8 XML parser and reader

9 Reflections

Read this rss feed information and store that information in da steps a. Understand what data it is giving b. Build the database according data(Follow normalization) c. Read data and store in the tables Download code from http://download.pear.php.net/package/D and extract the content. Take Date.php file from the extracted this file as input file and find out what are the classes, function Output the class names followed by that class functions. If the classes output the function names We have 3 container which hold x, y, z ounces of liquid respec ounces container is empty but y and z ounces containers are we measure out 'n' ounces by using only the three above men contaienrs?

Suppose if we substiture values for x=19, y=13, z=7 and n=10 should be like this. 19Ounces 13Ounces 0 13 7 step1 7 13 step2 19 1 step3 12 1 step4 12 8 step5 5 8 step6 5 13 step7 18 0 step8 18 2 step9 11 2 step10 11 9 step11 4 9 step12 4 13 step13 17 0 step14 17 3 step15 10 3 7Ounces 0 0 7 0 7 2 2 0 7 0 7 3 3 0 7

10 Logical thinking

At the final step we got 10ounces on 19ounces container. Fina have 'n'ounces on any of the x, y, z container. If can not make exception saying not possible to make it.

php training plan - PHP - 5.2

as input en obj1->0 should print 'first

en obj2->me should have value ymous' like that. hl=en&topic=t&output=rss

nformation in database. Follow

ormalization)

.net/package/Date-1.5.0a1.tgz, m the extracted directory. Take lasses, functions in that file. functions. If there are no

of liquid respectively. The x containers are full. How can hree above mentioned

3, z=7 and n=10 Then output

s container. Finally we should If can not make then raise

php training plan - PHP - 5.2

php training plan - PHP - 5.2

Write a small application which will allow the users to store the should have following pages.

11 Web Concepts

a. Login page where users will login to store the contacts. b. Registration page where new users will register c. After successfull registration or login the users should goto where it lists all his friends information. Provides list to add ne It should provide forms to delete friend details, edit friend deta d. Store the maximum friend details like name, email, website number etc.. e. Provide logout link when the user click logout, the user sess should be destroyed and it should redirect to login form. d. Use proper normalization for the database. e. Try to use single database connection in all pages. Create a simple application which is similar to facebook status

12

13

a. Provide login, logout, register, forgot password for the appli b. Once user logged in, he should see a page similar to faceb At the center of the page, it should display my friends status m should allow me to add my status message. c. User should able to add comment, rate to his friends status d. Through this application user should able to send invitation through email address. When you send an invitation an email your friend email address. There might be 2 cases. i. If your friend already register in the application then he shou request on his home page. Once he click accept then you and become friends. ii. If your friend is not already register in the application then in should have register link. Once the user register he should se on the home page same as first case. Once he accept the req and your friend will become friends in the application. Simple application which shows the statistics of running. This maintain the database of players with the running speeds. Sup run 100 meters in 1 min. then your speed will be 1.6 meters pe a. Provide login, logout, register, forgot password. b. Once user logs in he can add his speed by specifying I can for y seconds or minutes on that day. These x, y fields are the c. Use can add only one speed per day, but he can edit the sp d. Show rank of the user in the entire site by taking latest spee e. Show last 10days spead in a chart, so that user can analys f. Provide following filter for the above chart i. Show my spped from last x days. ii. Show my speed from last x weeks. iii. Show my spped from last x months. Note: Create normalized database for the above applications.

php training plan - PHP - 5.2

sers to store the friends list. It

e contacts. ster rs should goto welcome page es list to add new friend details. edit friend details etc.. email, website url, contact

ut, the user session details ogin form.

pages. facebook status messages.

ord for the application. similar to facebook home page. friends status messages and it

s friends status messages. send invitation to his friend itation an email should go to ses. on then he should see friend pt then you and your friend will

plication then invitation email er he should see your request e accept the request then you cation. f running. This application ng speeds. Suppose you can be 1.6 meters per second. ord. specifying I can run x meeters y fields are the input feeds. can edit the speed of that day. king latest speeds of all users. user can analyse progress.

ve applications.

php training plan - PHP - 5.2

10

Anda mungkin juga menyukai