My solution was to add a table to my database, and add an insert job id
into the table after the line that is causing the problem. When I submit the
script I use setTimeout to run an AJAX query of the table 5 seconds later.
If the line has failed the job id will not be in the table and I
Ben,
My solution was to add a table to my database, and add an insert job id
into the table after the line that is causing the problem. When I submit
the script I use setTimeout to run an AJAX query of the table 5 seconds
later. If the line has failed the job id will not be in the table and I
[snip]
I have a script that intermittently fails at the same line. I am trying
to write some code that will throw an exception after 5 seconds if the
command on that line fails and the script freezes.
Any ideas?
[/snip]
I have lots of ideas! But those really won't help you :)
We need to see
$map = ms_newMapObj($mapfile);
The command creates a new mapscript object.
Jay Blanchard wrote:
[snip]
I have a script that intermittently fails at the same line. I am trying
to write some code that will throw an exception after 5 seconds if the
command on that line fails and the script
$map = ms_newMapObj($mapfile);
The command creates a new mapscript object.
And PHP is hanging somewhere inside that constructor? Is this in a web
context or a command-line context? Or both?
It's a web app that draws maps in a browser. Sometime it will generate a
seg fault. The command should not take long, so if there is some script
construct that will throw an exception after a few seconds if the
command has not completed I could signal the user that the map will not
draw and to
On Fri, Sep 4, 2009 at 2:38 PM, jim white jbw2...@earthlink.net wrote:
It's a web app that draws maps in a browser. Sometime it will generate a
seg fault. The command should not take long, so if there is some script
construct that will throw an exception after a few seconds if the command
has
Hi,
Thanks I'll look at libevent. I have also been thinking about using an
XHR approach, but wonder how passing PHP references works with javascript.
Jim
Ben Dunlap wrote:
On Fri, Sep 4, 2009 at 2:38 PM, jim white jbw2...@earthlink.net
mailto:jbw2...@earthlink.net wrote:
It's a web
8 matches
Mail list logo