You are here: Re: posting array to an external php file « PHP Programming Language « IT news, forums, messages
Re: posting array to an external php file

Posted by luke on 07/26/05 03:42

Yes .. nice solution. I was thinking mainly about the problem with what do
with with the .txt file once it's been used. But that deletion would be very
nice. Another, slightly shitting way, could be a PHP script activated by a
cron job that purges files older than, say, and hour, that runs once a day
or so. ?



"Michael Phipps" <gravityspike_spamfree_@optusnet.com.au> wrote in message
news:42e42016$0$27877$afc38c87@news.optusnet.com.au...
>
> "luke" <lduncalfe@eml.nope> wrote in message
> news:XGTEe.3140$PL5.308308@news.xtra.co.nz...
> > This could be a really bad suggestion, but, could your script quickly
> > write
> > the array to a .txt file which is read by the next website.
>
> That's not a bad idea - and to get around the problem of the wrong data
> going to the wrong viewer, perhaps using a random file name could help?
PHP
> has a function for creating a temp filename called "tempnam"
>
> If the page that generates the img tag is php page that first generates
the
> data to be ploted, you could make your img tag something like:
> <img src="plot.php?TMPA092e45xf" />
>
> When plot displays the the file, at the end it could delete the temporary
> file...
>
>

 

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

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