RE: [PHP-GENERAL] programming question

From: Date: Mon, 19 Jun 2000 16:21:19 +0000
Subject: RE: [PHP-GENERAL] programming question
Groups: php.general 
Request: Send a blank email to php-general+get-2207@lists.php.net to get a copy of this message
> hi all, > > I'm writing a small web applicaton for students to use when scheduling > office hours with their professors. Here is my quandary: > When I take the > input from the faculty as to their available dates and times > for office > hours, I pass that info (in the form of a "dates" array and a > "times" array) > to another script which shows the available dates and times > in a drop down > list for the students to choose from. How can I save that information > uniquely so that the students can choose a professor's name > from a drop down > list and see the dates and times that the professor has keyed > in? I don't > want to store this info in a database. Is there a way to > associate an ID > number with two separate arrays? Where can I store this info? > I haven't > started the project with oop in mind, but maybe that would be > the way to go > with this? > You'll have to save that info somewhere. In file(s) or in some kind of db. Sounds like you just need a file, though. Yes OOP is your friend here because you can just serialize/deserialize the object or array containing the teacher information. Remember to lock the file and reload the data before updating it it (multiple accesses to your page could race for the data). -John

« previous php.general (#2207) next »