You are here: Re: is that possible ? how ? « PHP Programming Language « IT news, forums, messages
Re: is that possible ? how ?

Posted by Kim Andr� Aker� on 11/22/06 14:07

Bob Bedford wrote:

> Hi all,
>
> Need help on a big problem I've.
>
> Due to timeout (can't change settings or ISP...) I've to modify a
> script that read an XML document and save sent pictures on a server.
> This is a long time processing task and I get "out of time limit"
> every day.
>
> Now my question is: it is possible to send the encoded images (they
> are in [cdata] base 64 in XML) to an other script that will save the
> files on the server ?
>
> I mean call a script like that:
> <a href="saveimages.php?picarray=".$picarray." target="_blank">click
> here</a> but off course without the a href but an automatic call
> maybe in javascript ?
>
> Please help, I spend 5 days on this without much success.

You could, for each image pass in the XML file, use the
set_time_limit() function to reset the maximum execution time. Either
that, or use it to set the maximum execution time to a higher number.
http://php.net/set-time-limit

I've used this before myself when I had to import a rather large user
base from a CSV file (saved from Excel) into a member management system
in PHP (and e-mail autogenerated user names and passwords to each of
the members in the import process).

--
Kim André Akerø
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)

 

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

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