I would like to generate a dynamic image from a script and then load it into a browser without being permanent on the server.
However, I canβt call it by setting the image src = "script.php", because for this you will need to run the script that just generated the page and its data again, just to get the final data that the graph will generate.
Is there a way to do this, similar to setting the image src = "script.php", but which is called from another script and just sends the image without saving it? I need access to the data that is used to generate markup in order to create this dynamic image.
Or, if not, what is the easiest way to destroy an image after loading a page? ajax quick call?
Is there a way to cache certain data for a limited period of time so that it can be accessed by some other script?
Any ideas would be highly appreciated, since it is very difficult for me to find the right solution for this ...
Thanks!
source share