Write a simple PHP script which retrieves a list of student projects from a given web page. Your PHP code should perform the following
1. Obtain a session token from http://www.faizzaki.com/test/gettoken.php . Note that this page is displayed in HTML form.
2. Use the given session token to load the list of student projects from http://www.faizzaki/test/list.php?token=XXX, where XXX is the token value. Students are identified by their email addresses.
3. Parse this page and return as a result of this function, an array of student name & project title.
Also write additional PHP code that calls this function, and prints the result grouped by users in roughly the following format :
Student 1
Project 1
Project 2
…
Student 2
Project 1
Project 2
…
…
You may use cURL and PHP5 for the task. The above 2 tasks may be completed within 1 single PHP file for simplicity.
Good Luck !
No related posts.






