Jump to content

Cache dynamic image?


dose

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.