PHP GD Library, rendering an image - saving the image or not (what is the most effective solution)? -


i have php script renders image image using php gd library. need know effective solution (what best way):

1.render image "on fly" this:

<img src="createimage.php=id=1" /> 

or:

2.render/create image while uploading first image, , store in database?

<img src="$image" /> 

please post link source if have :)

it faster render/create image while uploading first image, , store not in database (!!!), but in filesystem!!! refrain using blobs purpose, unnecessary overhead. moreover, files easier backup huge database full of blobs.

so second possibility right, use filesystem. i'd call technique "caching".


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -