挑战新程序员的问题[关闭]

So I'm training someone at job in PHP, MySQL, HTML, etc and was wondering if anyone out there knew of any good entry-level challenges to have him complete in PHP. I've had him do a bunch already and I'm starting to run out of ideas. He has no previous programming experience.

Calculate Age - accounts for pre 1970 dates, leap years, if birthday has passed in current year, birthday is in future, format of date.

Build on the classes he's created and extend them to do other things.

Output the contents of a multi-dimensional array - recursion.

Open a text file and extract data - memory management, max time execution.

Get mismatched records from two tables. LEFT JOIN ... x IS NULL

build a grid of data from a query - colspan when cells left over

recurring Ajax requests. Check database to see if X has been saved/updated. (2 user tick tack toe or chat room)

How about a Guestbook? Image-Gallery? Small CMS? Simple Shop? a Blog?

I would personally go for a ecommerce site. They are pretty hard to make well so it would be a real challenge.

Make it with all the works, fully ordering and all cornjobs etc required to hold prices and special offers etc.

For real simple:

  • Make a cronjob
  • Learn how to call system commands from PHP
  • Learn about the CLI