What renders/loads quicker: mysql select, or fopen() in php
Hey folks. I want to make my own random quotes box in the header of my vb pages, and can't decide which solution to use:
1-Text file, quotes separated by \n, loaded with fopen() in php, grabbing one at random every page load
2-Store the quotes in a table, and have mysql grab one at random every page load
Any experience with this to keep performance up? I had an fopen hack on my phpBB2 forum which loaded really fast, but haven't compared it to a mysql query.
|