473,804 Members | 3,894 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Script timeout (Long loop process)

Hello,

First of all sorry for the long code. But i want to explain clearly what i
am doing.

For i = 0 To UBound(arrResSi zes) - 1
For j = 0 To UBound(arrqty) - 1
For k = 1 To totopr Step 8
tempjob = right(jc,5)
tempsize = left(arrResSize s(i) & " ", 3)
headsize = left(arrResSize s(i) & " ", 6)
tempqty = Right(" " & CStr(arrqty(j)) , 2)
templay = Right(" " & CStr(lno), 3)
tempbdl = Right(" " & bdlno, 5)
tempopr = Right("00" & k, 2)
'tempcolor = Left(getColorNa me(arrColorCode s(j)) & "
", 6)
tempcolor=left( dict.Item(cstr( arrColorCodes(j ))) & "
",6)
strop = strop & tempjob & " " & tempsize & " " &
tempqty & " " & templay & " " & tempbdl & " " & tempopr & " " & tempopr
& " " & headsize & " "
If (k + 1) <= totopr Then
tempopr = Right("00" & k + 1, 2)
strop = strop & tempopr & " " & tempjob & " " &
tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr &
vbcrlf & vbcrlf & vbcrlf
Else
strop = strop & vbcrlf & vbcrlf & vbcrlf
End If
If (k + 2) <= totopr Then
tempopr = Right("00" & k + 2, 2)
strop = strop & tempjob & " " & tempsize & " " &
tempqty & " " & templay & " " & tempbdl & " " & tempopr & " " & tempopr
& " " & tempqty & " PCS" & " "
Else
strop = strop & "
" & tempqty & " PCS "
End If

If (k + 3) <= totopr Then
tempopr = Right("00" & k + 3, 2)
strop = strop & tempopr & " " & tempjob & " " &
tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr &
vbcrlf & vbcrlf & vbcrlf
Else
strop = strop & vbcrlf & vbcrlf & vbcrlf
End If
If (k + 4) <= totopr Then
tempopr = Right("00" & k + 4, 2)
strop = strop & tempjob & " " & tempsize & " " &
tempqty & " " & templay & " " & tempbdl & " " & tempopr & " " & tempopr
& " " & tempcolor & " "
Else
strop = strop & "
" & tempcolor
End If

If (k + 5) <= totopr Then
tempopr = Right("00" & k + 5, 2)
strop = strop & tempopr & " " & tempjob & " " &
tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr &
vbcrlf & vbcrlf & vbcrlf
Else
strop = strop & vbcrlf & vbcrlf & vbcrlf
End If

If (k + 6) <= totopr Then
tempopr = Right("00" & k + 6, 2)
strop = strop & tempjob & " " & tempsize & " " &
tempqty & " " & templay & " " & tempbdl & " " & tempopr & " " & tempopr
& " " & tempjob & " "
Else
strop = strop & "
" & tempjob
End If

If (k + 7) <= totopr Then
tempopr = Right("00" & k + 7, 2)
strop = strop & tempopr & " " & tempjob & " " &
tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr &
vbcrlf & vbcrlf & vbcrlf
Else
strop = strop & vbcrlf & vbcrlf & vbcrlf
End If
Next
bdlno = bdlno + 1
rowcounter = 1
Next
Next
The first loop may be having 5 iterations(0 to 5)
Second - (0 to 20)
third may be (1 to 52)

Its taking so much time to produce the final output(nearly 5 mts). I got an
error initially "Script timeout". I have set the value to 180
"server.scriptt imeout=180" Now its ok. But taking some long time to display
output. Even in the server itself.

Some times the first loop may be 0 to 12

Is my coding is wrong? or any other sollution is there to get the fast
output for this?

Pls help me. After executing i am saving the output(strop) in a text file
using FSO(that my need).

Thanks in advance.

The output could be liek this

http://m.1asphost.com/tsimsha/tickets.txt

Jul 22 '05 #1
5 1835
io
G'day Rajani,

There is nothing wrong with your code. The killer most likely is string
management routines, namely, memory allocation routines that manage string
concatenations. I suggest you modify your code so that you accumulate the
output into array(s) and then use JOIN() to produce the final output string.
Have a look at the very basic code below - it should give you an idea what I
mean:

dim i, sTemp, aOut(), sOut

for i = 0 to 1000000
sTemp = <your code>
ReDim Preserve aOut(i)
aOut(i) = sTemp
next

sOut = Join(aOut, <delimeter>)

Cheers
"Rajani" <Ra****@discuss ions.microsoft. com> wrote in message
news:D4******** *************** ***********@mic rosoft.com...
Hello,

First of all sorry for the long code. But i want to explain clearly what i am doing.

For i = 0 To UBound(arrResSi zes) - 1
For j = 0 To UBound(arrqty) - 1
For k = 1 To totopr Step 8
tempjob = right(jc,5)
tempsize = left(arrResSize s(i) & " ", 3)
headsize = left(arrResSize s(i) & " ", 6)
tempqty = Right(" " & CStr(arrqty(j)) , 2)
templay = Right(" " & CStr(lno), 3)
tempbdl = Right(" " & bdlno, 5)
tempopr = Right("00" & k, 2)
'tempcolor = Left(getColorNa me(arrColorCode s(j)) & "
", 6)
tempcolor=left( dict.Item(cstr( arrColorCodes(j ))) & "
",6)
strop = strop & tempjob & " " & tempsize & " " &
tempqty & " " & templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " & headsize & " "
If (k + 1) <= totopr Then
tempopr = Right("00" & k + 1, 2)
strop = strop & tempopr & " " & tempjob & " " & tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr &
vbcrlf & vbcrlf & vbcrlf
Else
strop = strop & vbcrlf & vbcrlf & vbcrlf
End If
If (k + 2) <= totopr Then
tempopr = Right("00" & k + 2, 2)
strop = strop & tempjob & " " & tempsize & " " &
tempqty & " " & templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " & tempqty & " PCS" & " "
Else
strop = strop & "
" & tempqty & " PCS "
End If

If (k + 3) <= totopr Then
tempopr = Right("00" & k + 3, 2)
strop = strop & tempopr & " " & tempjob & " " & tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr &
vbcrlf & vbcrlf & vbcrlf
Else
strop = strop & vbcrlf & vbcrlf & vbcrlf
End If
If (k + 4) <= totopr Then
tempopr = Right("00" & k + 4, 2)
strop = strop & tempjob & " " & tempsize & " " &
tempqty & " " & templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " & tempcolor & " "
Else
strop = strop & "
" & tempcolor
End If

If (k + 5) <= totopr Then
tempopr = Right("00" & k + 5, 2)
strop = strop & tempopr & " " & tempjob & " " & tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr &
vbcrlf & vbcrlf & vbcrlf
Else
strop = strop & vbcrlf & vbcrlf & vbcrlf
End If

If (k + 6) <= totopr Then
tempopr = Right("00" & k + 6, 2)
strop = strop & tempjob & " " & tempsize & " " &
tempqty & " " & templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " & tempjob & " "
Else
strop = strop & "
" & tempjob
End If

If (k + 7) <= totopr Then
tempopr = Right("00" & k + 7, 2)
strop = strop & tempopr & " " & tempjob & " " & tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr &
vbcrlf & vbcrlf & vbcrlf
Else
strop = strop & vbcrlf & vbcrlf & vbcrlf
End If
Next
bdlno = bdlno + 1
rowcounter = 1
Next
Next
The first loop may be having 5 iterations(0 to 5)
Second - (0 to 20)
third may be (1 to 52)

Its taking so much time to produce the final output(nearly 5 mts). I got an error initially "Script timeout". I have set the value to 180
"server.scriptt imeout=180" Now its ok. But taking some long time to display output. Even in the server itself.

Some times the first loop may be 0 to 12

Is my coding is wrong? or any other sollution is there to get the fast
output for this?

Pls help me. After executing i am saving the output(strop) in a text file
using FSO(that my need).

Thanks in advance.

The output could be liek this

http://m.1asphost.com/tsimsha/tickets.txt

Jul 22 '05 #2

Hello,

Many thanx for u r reply. I didnt get you clearly. Can u guide me with my
code? what i have to delete and modify?

Thanx again
"io" wrote:
G'day Rajani,

There is nothing wrong with your code. The killer most likely is string
management routines, namely, memory allocation routines that manage string
concatenations. I suggest you modify your code so that you accumulate the
output into array(s) and then use JOIN() to produce the final output string.
Have a look at the very basic code below - it should give you an idea what I
mean:

dim i, sTemp, aOut(), sOut

for i = 0 to 1000000
sTemp = <your code>
ReDim Preserve aOut(i)
aOut(i) = sTemp
next

sOut = Join(aOut, <delimeter>)

Cheers


Jul 22 '05 #3
io
It just occured to me that you may be better off writing directly to a
file - eliminates concatatenation and you need file output anyway.
Try the following:
dim fs, a

Set fs = CreateObject("S cripting.FileSy stemObject")
Set a = fs.CreateTextFi le("c:\testfile .txt", True)

For i = 0 To UBound(arrResSi zes) - 1
For j = 0 To UBound(arrqty) - 1
For k = 1 To totopr Step 8
tempjob = right(jc,5)
tempsize = left(arrResSize s(i) & " ", 3)
headsize = left(arrResSize s(i) & " ", 6)
tempqty = Right(" " & CStr(arrqty(j)) , 2)
templay = Right(" " & CStr(lno), 3)
tempbdl = Right(" " & bdlno, 5)
tempopr = Right("00" & k, 2)
'tempcolor = Left(getColorNa me(arrColorCode s(j)) & " ", 6)
tempcolor=left( dict.Item(cstr( arrColorCodes(j ))) & " ",6)
a.Write(tempjob & " " & tempsize & " " & tempqty & " " &
templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " &
headsize & " ")
If (k + 1) <= totopr Then
tempopr = Right("00" & k + 1, 2)
a.Write(tempopr & " " & tempjob & " " & tempsize & " "
& tempqty & " " & templay & " " & tempbdl & " " & tempopr & vbcrlf & vbcrlf
& vbcrlf)
Else
a.Write(vbcrlf & vbcrlf & vbcrlf)
End If
If (k + 2) <= totopr Then
tempopr = Right("00" & k + 2, 2)
a.Write(tempjob & " " & tempsize & " " & tempqty & " " &
templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " &
tempqty & " PCS" & " ")
Else
a.Write(" " & tempqty &
" PCS ")
End If

If (k + 3) <= totopr Then
tempopr = Right("00" & k + 3, 2)
a.Write(tempopr & " " & tempjob & " " & tempsize & " "
& tempqty & " " & templay & " " & tempbdl & " " & tempopr & vbcrlf & vbcrlf
& vbcrlf)
Else
a.Write(vbcrlf & vbcrlf & vbcrlf)
End If
If (k + 4) <= totopr Then
tempopr = Right("00" & k + 4, 2)
a.Write(tempjob & " " & tempsize & " " & tempqty & " " &
templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " &
tempcolor & " ")
Else
a.Write(" " &
tempcolor)
End If

If (k + 5) <= totopr Then
tempopr = Right("00" & k + 5, 2)
a.Write(tempopr & " " & tempjob & " " & tempsize & " "
& tempqty & " " & templay & " " & tempbdl & " " & tempopr & vbcrlf & vbcrlf
& vbcrlf)
Else
a.Write(vbcrlf & vbcrlf & vbcrlf)
End If

If (k + 6) <= totopr Then
tempopr = Right("00" & k + 6, 2)
a.Write(tempjob & " " & tempsize & " " & tempqty & " " &
templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " &
tempjob & " ")
Else
a.Write(" " & tempjob)
End If

If (k + 7) <= totopr Then
tempopr = Right("00" & k + 7, 2)
a.Write(tempopr & " " & tempjob & " " & tempsize & " "
& tempqty & " " & templay & " " & tempbdl & " " & tempopr & vbcrlf & vbcrlf
& vbcrlf)
Else
a.Write(vbcrlf & vbcrlf & vbcrlf)
End If
Next
bdlno = bdlno + 1
rowcounter = 1
Next
Next

a.Close

Cheers
"Rajani" <Ra****@discuss ions.microsoft. com> wrote in message
news:57******** *************** ***********@mic rosoft.com...

Hello,

Many thanx for u r reply. I didnt get you clearly. Can u guide me with my code? what i have to delete and modify?

Thanx again
"io" wrote:
G'day Rajani,

There is nothing wrong with your code. The killer most likely is string
management routines, namely, memory allocation routines that manage string concatenations. I suggest you modify your code so that you accumulate the output into array(s) and then use JOIN() to produce the final output string. Have a look at the very basic code below - it should give you an idea what I mean:

dim i, sTemp, aOut(), sOut

for i = 0 to 1000000
sTemp = <your code>
ReDim Preserve aOut(i)
aOut(i) = sTemp
next

sOut = Join(aOut, <delimeter>)

Cheers

Jul 22 '05 #4
One possibility for performance is to put all that logic into a compiled
object (e.g. VB6 COM DLL). It may perform much faster.

One possibility to give feedback to your users is to set Reponse.Buffer =
False and Server.ScriptTi meout = 0.

Then in various places in your code, write out status messages so that users
know it's still working, like

Response.Write "Still processing..." & string(1000, " ")
Response.Flush

I added the string(1000, " ") b/c I've had issues w/ the response not
getting flushed if not enough new data was added. *shrug*

--
Ben Strackany
www.developmentnow.com
"Rajani" <Ra****@discuss ions.microsoft. com> wrote in message
news:D4******** *************** ***********@mic rosoft.com...
Hello,

First of all sorry for the long code. But i want to explain clearly what i am doing.

For i = 0 To UBound(arrResSi zes) - 1
For j = 0 To UBound(arrqty) - 1
For k = 1 To totopr Step 8
tempjob = right(jc,5)
tempsize = left(arrResSize s(i) & " ", 3)
headsize = left(arrResSize s(i) & " ", 6)
tempqty = Right(" " & CStr(arrqty(j)) , 2)
templay = Right(" " & CStr(lno), 3)
tempbdl = Right(" " & bdlno, 5)
tempopr = Right("00" & k, 2)
'tempcolor = Left(getColorNa me(arrColorCode s(j)) & "
", 6)
tempcolor=left( dict.Item(cstr( arrColorCodes(j ))) & "
",6)
strop = strop & tempjob & " " & tempsize & " " &
tempqty & " " & templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " & headsize & " "
If (k + 1) <= totopr Then
tempopr = Right("00" & k + 1, 2)
strop = strop & tempopr & " " & tempjob & " " & tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr &
vbcrlf & vbcrlf & vbcrlf
Else
strop = strop & vbcrlf & vbcrlf & vbcrlf
End If
If (k + 2) <= totopr Then
tempopr = Right("00" & k + 2, 2)
strop = strop & tempjob & " " & tempsize & " " &
tempqty & " " & templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " & tempqty & " PCS" & " "
Else
strop = strop & "
" & tempqty & " PCS "
End If

If (k + 3) <= totopr Then
tempopr = Right("00" & k + 3, 2)
strop = strop & tempopr & " " & tempjob & " " & tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr &
vbcrlf & vbcrlf & vbcrlf
Else
strop = strop & vbcrlf & vbcrlf & vbcrlf
End If
If (k + 4) <= totopr Then
tempopr = Right("00" & k + 4, 2)
strop = strop & tempjob & " " & tempsize & " " &
tempqty & " " & templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " & tempcolor & " "
Else
strop = strop & "
" & tempcolor
End If

If (k + 5) <= totopr Then
tempopr = Right("00" & k + 5, 2)
strop = strop & tempopr & " " & tempjob & " " & tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr &
vbcrlf & vbcrlf & vbcrlf
Else
strop = strop & vbcrlf & vbcrlf & vbcrlf
End If

If (k + 6) <= totopr Then
tempopr = Right("00" & k + 6, 2)
strop = strop & tempjob & " " & tempsize & " " &
tempqty & " " & templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " & tempjob & " "
Else
strop = strop & "
" & tempjob
End If

If (k + 7) <= totopr Then
tempopr = Right("00" & k + 7, 2)
strop = strop & tempopr & " " & tempjob & " " & tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr &
vbcrlf & vbcrlf & vbcrlf
Else
strop = strop & vbcrlf & vbcrlf & vbcrlf
End If
Next
bdlno = bdlno + 1
rowcounter = 1
Next
Next
The first loop may be having 5 iterations(0 to 5)
Second - (0 to 20)
third may be (1 to 52)

Its taking so much time to produce the final output(nearly 5 mts). I got an error initially "Script timeout". I have set the value to 180
"server.scriptt imeout=180" Now its ok. But taking some long time to display output. Even in the server itself.

Some times the first loop may be 0 to 12

Is my coding is wrong? or any other sollution is there to get the fast
output for this?

Pls help me. After executing i am saving the output(strop) in a text file
using FSO(that my need).

Thanks in advance.

The output could be liek this

http://m.1asphost.com/tsimsha/tickets.txt

Jul 22 '05 #5
io
How did you go with this?
Try the following:
dim fs, a

Set fs = CreateObject("S cripting.FileSy stemObject")
Set a = fs.CreateTextFi le("c:\testfile .txt", True)

For i = 0 To UBound(arrResSi zes) - 1
For j = 0 To UBound(arrqty) - 1
For k = 1 To totopr Step 8
tempjob = right(jc,5)
tempsize = left(arrResSize s(i) & " ", 3)
headsize = left(arrResSize s(i) & " ", 6)
tempqty = Right(" " & CStr(arrqty(j)) , 2)
templay = Right(" " & CStr(lno), 3)
tempbdl = Right(" " & bdlno, 5)
tempopr = Right("00" & k, 2)
'tempcolor = Left(getColorNa me(arrColorCode s(j)) & " ", 6) tempcolor=left( dict.Item(cstr( arrColorCodes(j ))) & " ",6) a.Write(tempjob & " " & tempsize & " " & tempqty & " " &
templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " &
headsize & " ")
If (k + 1) <= totopr Then
tempopr = Right("00" & k + 1, 2)
a.Write(tempopr & " " & tempjob & " " & tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr & vbcrlf & vbcrlf & vbcrlf)
Else
a.Write(vbcrlf & vbcrlf & vbcrlf)
End If
If (k + 2) <= totopr Then
tempopr = Right("00" & k + 2, 2)
a.Write(tempjob & " " & tempsize & " " & tempqty & " " &
templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " &
tempqty & " PCS" & " ")
Else
a.Write(" " & tempqty & " PCS ")
End If

If (k + 3) <= totopr Then
tempopr = Right("00" & k + 3, 2)
a.Write(tempopr & " " & tempjob & " " & tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr & vbcrlf & vbcrlf & vbcrlf)
Else
a.Write(vbcrlf & vbcrlf & vbcrlf)
End If
If (k + 4) <= totopr Then
tempopr = Right("00" & k + 4, 2)
a.Write(tempjob & " " & tempsize & " " & tempqty & " " &
templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " &
tempcolor & " ")
Else
a.Write(" " &
tempcolor)
End If

If (k + 5) <= totopr Then
tempopr = Right("00" & k + 5, 2)
a.Write(tempopr & " " & tempjob & " " & tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr & vbcrlf & vbcrlf & vbcrlf)
Else
a.Write(vbcrlf & vbcrlf & vbcrlf)
End If

If (k + 6) <= totopr Then
tempopr = Right("00" & k + 6, 2)
a.Write(tempjob & " " & tempsize & " " & tempqty & " " &
templay & " " & tempbdl & " " & tempopr & " " & tempopr & " " &
tempjob & " ")
Else
a.Write(" " & tempjob) End If

If (k + 7) <= totopr Then
tempopr = Right("00" & k + 7, 2)
a.Write(tempopr & " " & tempjob & " " & tempsize & " " & tempqty & " " & templay & " " & tempbdl & " " & tempopr & vbcrlf & vbcrlf & vbcrlf)
Else
a.Write(vbcrlf & vbcrlf & vbcrlf)
End If
Next
bdlno = bdlno + 1
rowcounter = 1
Next
Next

a.Close

Cheers
"Rajani" <Ra****@discuss ions.microsoft. com> wrote in message
news:57******** *************** ***********@mic rosoft.com...

Hello,

Many thanx for u r reply. I didnt get you clearly. Can u guide me with

my
code? what i have to delete and modify?

Thanx again
"io" wrote:
G'day Rajani,

There is nothing wrong with your code. The killer most likely is string management routines, namely, memory allocation routines that manage string concatenations. I suggest you modify your code so that you accumulate the output into array(s) and then use JOIN() to produce the final output string. Have a look at the very basic code below - it should give you an idea what I mean:

dim i, sTemp, aOut(), sOut

for i = 0 to 1000000
sTemp = <your code>
ReDim Preserve aOut(i)
aOut(i) = sTemp
next

sOut = Join(aOut, <delimeter>)

Cheers


Jul 22 '05 #6

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

Similar topics

10
5432
by: Doug | last post by:
I have a script that does a huge database update, which takes a long time. However, the host I am running on (and I suspect most hosts) are running in "safe mode." This means I cannot change the maximum execution time of scripts. So, the script stops right in the middle of doing the update. On top of that, I am trying to make code that I can distribute to others. As of now, the only way that this script can be run is with sys admin...
8
7042
by: Mathieu Blais | last post by:
Hi, I need to capture the Script timeout error if that is possible. I know I can increase the timeout value in the server settings or in the scripts itself but I really want to make sure that no timeout situation will results as the standard script timeout error page. Can we do this ?? Help please.
2
2603
by: codesmithsf | last post by:
I'm using PHP 4.2.2 and Apache 2.0.4.0. A script running on a virtual host had an endless loop in it that brought Apache to its knees. I have max_execution_time=90 and memory_limit=32M to handle larger file uploads and Gallery stuff (thumbnail processing) but the script goes way past 90 seconds. Safe mode is off but the script doesn't override it by using set_time_limit(). I have to restart Apache to fix the problem. Apache Timeout is...
4
5516
by: Anders Borum | last post by:
Hello! I am working on improving my threading skills and came across a question. When working with the ReaderWriterLock class, I am getting an unhandled exception if I acquire a WriterLock with a timeout less than the time required to process the code section it protects. The code listed below is just a small application I wrote to check the behavious of the different threading / synchronization techniques. Basically the application...
2
1724
by: PCH | last post by:
I have a page in asp.net (vb.net) that does some background processing. the user enters info on the aspx page and clicks run. That goes to the codebehind to do data/file work. It can take up to say 10minutes to do the processing. I've set the server.scripttimeout to a high value.
22
5299
by: Nick Craig-Wood | last post by:
Did anyone write a contextmanager implementing a timeout for python2.5? I'd love to be able to write something like with timeout(5.0) as exceeded: some_long_running_stuff() if exceeded: print "Oops - took too long!"
14
2048
by: DavidNorep | last post by:
I do not know PHP, consider to write a CGI with this technology and have the following question. Is it possible to invoke a PHP script and let it endlessly wait for requests from a website (a Java applet in my case) and serve the requests when they arrive? I want to avoid loading the script for each request. In other words, can it function, in this sense, like a Java servlet?
1
1947
by: webotronics | last post by:
Hi, I need to add a timeout for external programs, as the external program sometimes never dies (it's a ClearQuest multisite call to the shipping server, that sometimes never ends, but simply hangs). I have three different ways of forking the call, but none works. I send the one I believe most in... use POSIX ":sys_wait_h"; my $loop = 1; $loop = $ARGV if defined $ARGV;
5
3488
by: This | last post by:
I have a pretty basic emailing script that sends a relatively small number (150) of html emails. The emails are compiled, personalised from a mysql db subscribers list, and sent using mail() - after sending, a small summary html page is sent to the user with number sent, time taken and a simple navigation choice. Up to about 100 emails it all works fine - this takes the server about 27 secs . Any more than that and although the emails are...
0
10593
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10329
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7626
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6858
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4304
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3000
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.