|
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]
|