Posted by Tyno Gendo on 04/30/07 09:12
Andrea Scharfe wrote:
> also tried writing a shell script with the same functionality hoping
> that starting the shell script in the background (using &) would
> terminate the php script before the images were deleted.
> Didn't work either.
> Does anyone have an idea? I do not want to use a cron job or something
> to clean the temporary directory.
> Are there any php only solutions to this problem?
>
> Cheers!
> Andrea
>
How about having the PHP script accept parameters on the query string,
generate to your graph in an inline IMG tag eg.
<img src="gengraph?p1=100&p2=200 ..." />
PHP script generates img, returns it to the browser, then deletes the files.
Is the problem that you don't know what the temporary files are called
or that they always have same name?
Navigation:
[Reply to this message]
|