Re: dynamically generating and retrieving page data using flat files

From: Date: Sun, 09 May 2010 02:03:09 +0000
Subject: Re: dynamically generating and retrieving page data using flat files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-305015@lists.php.net to get a copy of this message
On 5/8/2010 9:41 PM, David Mehler wrote:
Hello, I've got a project that i have to reference information stored on one page from another. This page I won't be visiting first, and at the moment i'd prefer to use flat php files, but should that prove to hard i'll transition to a mysql database. I'm looking for simplicity and maintainability. I've got a page of individuals, their names, positions, and a brief summary of them. On the main page I want to put their names and positions in an ordered list, pulling that information from the second page. The idea is whenever the second page is updated the main page will automatically update. Suggestions welcome. Thanks. Dave.
Consider using arrays. Give each individual a unique ID and use for your keys Serialize() the array and put_file_contents() file_get_contents and unserialize()

« previous php.general (#305015) next »