Jump to content

alxgfx

New Members
  • Posts

    3
  • Joined

  • Last visited

alxgfx's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. alxgfx

    PHP image caching

    Thank you for taking much time in explaining. I already got exact solution from another forum. The cron job tip from your part makes things more easier. Thumbs up
  2. alxgfx

    PHP image caching

    Stefan, thank you for the reply. The problem is the image and its contents are user generated. Is there anyway to cache the image generated, sothat if a 2nd user comes with the same querry, the previously generated image will be automatically displayed without executing the code?
  3. alxgfx

    PHP image caching

    I have a php file (text.php) that will create text to image. ie domain.com/txt.php?text=hello will outputs an image with hello written on it. I want that image to be cached as it is called very often. So where did this caching occurs? Browser or in server. Is it possible to implement dynamically generated image caching in server. If so please share the headers to achieve this. Thanks in advance. Nb. This is the content of text.php file <?php $txt=$_GET["text"]; $im = imagecreatetruecolor(120, 20); $text_color = imagecolorallocate($im, 255, 255, 255); imagestring($im, 10, 1, 1, $txt, $text_color); header('Content-type: image/jpeg'); imagejpeg($im); imagedestroy($im); ?>
×
×
  • Create New...