Small, short code snippets that other people may find useful. Do you have a good regex that you would like to share? Share it! Even better, the code can be commented on, and improved.
Jcart wrote:Remember guys, avoid storing images in a database.. can really extend your page load times.
Just curious... My script takes approx. 0.15xx - 0.27xx seconds to execute while retrieving an image from MySQL stored as a blob and that includes, INCLUDES, and writing to a logfile as well as some other things... is that slow for getting images that are under 10240 bytes in size? I imagine with logging turned off it would be much faster (a fair amount of debugging info can be output)
time in relative in this case. It basically all banks on how many pages you need to serve in a given time period. If it's high, you either need to optimize the code more or get a faster server.. but optimizing is suggested, as that will always scale to any new server you move to.