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. Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.