You are here: Re: Delete temporary images after loading website « PHP Programming Language « IT news, forums, messages
Re: Delete temporary images after loading website

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация