Omzy Posted August 26, 2009 Share Posted August 26, 2009 Basically the front page of my site displays details of the 5 most recent customers added to the site. It gets this information from the database - very basic stuff. As the site is getting busier its slowing down due to the number of requests to the database. Is it possible I could have a file on the server that I can run manually everytime some new data is added to the database, and will put this data into an array so it can be displayed on the front page? This way there would not be a call to the database upon site load. Link to comment https://forums.phpfreaks.com/topic/172044-put-data-into-array-from-database/ Share on other sites More sharing options...
Omzy Posted August 27, 2009 Author Share Posted August 27, 2009 Anyone? Alternatively is it possible to write (add/update/delete) items from an array stored in a file? Link to comment https://forums.phpfreaks.com/topic/172044-put-data-into-array-from-database/#findComment-907193 Share on other sites More sharing options...
rubing Posted August 27, 2009 Share Posted August 27, 2009 yeah, you can write this kind of stuff to a simple text file using the fopen and associated fcns. Link to comment https://forums.phpfreaks.com/topic/172044-put-data-into-array-from-database/#findComment-907197 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.