473,480 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

is that possible ? how ?

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</abut off course without the a href but an automatic call maybe in
javascript ?

Please help, I spend 5 days on this without much success.

Bob

Nov 21 '06 #1
4 1105
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</abut off course without the a href but an automatic call maybe in
javascript ?

Please help, I spend 5 days on this without much success.

Bob
Maybe you could cron the script so it parses input as it arrives (let's
say every 20 minutes) - if you don't get your xml-s in big chunks but in
smaller chunks every so and so (like emails for example) that could be a
workaround...
--

B.r.K.o.N.j.A = Bionic Robotic Knight Optimized for Nocturnal Judo and
Assasination
Nov 21 '06 #2
Maybe you could cron the script so it parses input as it arrives (let's
say every 20 minutes) - if you don't get your xml-s in big chunks but in
smaller chunks every so and so (like emails for example) that could be a
workaround...
hi B.r.K.o.N.j.A
I actually cron the script but every time it runs, each XML file is too big
to be managed in the allowed time.

I need a workaround to manage every file, not the list of file.

Bob

Nov 22 '06 #3
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</abut 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ĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Nov 22 '06 #4
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).
It has been disabled by the ISP so I can't do that.

Nov 22 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
14454
by: Julia Briggs | last post by:
I am struggling to create a PHP function that would take a specified image (JPG, GIF or PNG) from a link, and resize it down to a thumbnail so it will always fit in a 200x250 space. I am hoping...
36
9425
by: rbt | last post by:
Say I have a list that has 3 letters in it: I want to print all the possible 4 digit combinations of those 3 letters: 4^3 = 64 aaaa
20
2433
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to...
7
2335
by: Andrzej | last post by:
Is it possible to call a function which name is given by a string? Let assume that I created a program which call some functions for example void f1(void), void f2(void), void f3(void). ...
2
3782
by: Bhupesh Naik | last post by:
This is a query regarding my problem to make a spell and grammar check possible in text area of a web page. We have aspx pages which are used to construct letters. The browser based screens...
1
6938
by: AAA | last post by:
hi, I'll explain fastly the program that i'm doing.. the computer asks me to enter the cardinal of a set X ( called "dimX" type integer)where X is a table of one dimension and then to fill it...
25
2514
by: Piotr Nowak | last post by:
Hi, Say i have a server process which listens for some changes in database. When a change occurs i want to refresh my page in browser by notyfinig it. I do not want to refresh my page i.e....
4
7639
by: RSH | last post by:
Okay my math skills aren't waht they used to be... With that being said what Im trying to do is create a matrix that given x number of columns, and y number of possible values i want to generate...
7
3346
by: Robert S. | last post by:
Searching some time now for documents on this but still did not find anything about it: Is it possible to replace the entry screen of MS Office Access 2007 - that one presenting that default...
14
1983
by: bjorklund.emil | last post by:
Hello pythonistas. I'm a newbie to pretty much both programming and Python. I have a task that involves writing a test script for every possible combination of preference settings for a software...
0
6912
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6744
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5348
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4790
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4488
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3000
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2989
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
565
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
188
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.