Wednesday, April 7, 2010

Class 7 Optional Advanced PHP Homework: Using Files

Slightly modified version using files to store beer glass descriptions instead of hardcoded arrays. Here it is.

Notes:
Main calling program stayed the same except for a different PHP include file, in this case it was "read_file.php" which read each line in the text file "beerglass_info.txt" (semi-colon delimited), exploded the fields into a temp array, and stored that into the beer glass multi-dimensional array.




After that rather disappointing lunch (see previous post), and a tough day learning the ins and outs of PHP, time for some soothing afternoon tea in a relaxed environment - where else but Cha-An tea house? I had the afternoon tea set (shown above) accompanied by a pot of my favorite genmaicha. Not only filling but makes all your PHP cares go away.

No comments:

Post a Comment