Re: Delete temporary images after loading website



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?
.



Relevant Pages

  • need help with ecard home page - was PHP tutor in San Francisco
    ... My thanks to all the people who offered to help me with homework assignment for the PHP class I'm taking. ... The assignment requires the PHP script to randomly display 16 thumbnails and when the user clicks on one of them, ... I don't understand why this is, since there are 139 images. ...
    (comp.lang.php)
  • Rotating Images from a text file using PHP
    ... The images shoult have their own hyperlink & alt tag. ... The PHP Script should be able to retrieve the alt tag and hyperlink ...
    (php.general)
  • Re: PHP images and time
    ... I want to add a php script to my page that changes my collection of ... images based on the time of my computer. ... change the picture on the site, but it should not be random. ... img tag on your page. ...
    (php.general)
  • Delete temporary images after loading website
    ... I am writing a PHP script which generates some charts using gnuplot. ... This generates quite a large number of temporary image files. ... Everything I have tried so far resulted in that the images were not ...
    (comp.lang.php)
  • Javascript/PHP interaction
    ... Suppose I have a bunch of DOM objects (namely images) and want to pass the ... attributes of these DOM objects to a PHP script. ...
    (comp.lang.php)