dose Posted July 24, 2009 Share Posted July 24, 2009 Im using curl to pull info from another server and put it on a image. How can i cache the final output image on my server for a hour Link to comment https://forums.phpfreaks.com/topic/167232-cache-dynamic-image/ Share on other sites More sharing options...
rhodesa Posted July 24, 2009 Share Posted July 24, 2009 can you post some more info? -you need a unique way to refer to the image. If the URL you are getting the image from is unique, just cache the file in a local folder with the filename: $file = md5($url).'.jpg'; -to cache it for a specific time, you can check how old it is with: http://php.net/filemtime Link to comment https://forums.phpfreaks.com/topic/167232-cache-dynamic-image/#findComment-881873 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.