Connnection Time out? What is that error?

They have: 60 posts

Joined: Aug 2000

Hi guys,
I was programming a script (doing only open & closing files)
And got that error:
Connection Timed out
and nothing more detailed than that!

Could you guys tell me where does the error come from?
I use some "require"'s. But even when I changed the script so that don't need require, it still has the same error.
Oh, and the error only happens when the user enables around 3,4+ checkboxes (1 checkbox = reading file)
Please help! I've tried the script several ways trying to determine the problem, but none worked!

http://new.123finder.com/ - Helps you find cool domains for FREE & Registers it for only $14.95/yr
http://www.ad-rotator.com/ - Free ad rotating system for small websites - Stop Ctrl-P/Ctrl-C the ad code!

------
Son

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

??? I never seen that before.

are you doing something like this: (psuedocode)
if BoxOne = "checked" then require "file"

Are you jsut requiring, or opening and closing them?
what are you doing while the files are 'open'?

Mark Hensler
If there is no answer on Google, then there is no question.

They have: 60 posts

Joined: Aug 2000

Well, file reading only happens in the sub & just read into an array, then close it!

Yeah, something like you said, require will call an external cgi to run the appropriate task (which is reading a file & correct it and then writing to a new one)
And if I checked 3 or 4 (and of course 4+), got that error!

Plz help!
Thanks

http://new.123finder.com/ - Helps you find cool domains for FREE & Registers it for only $14.95/yr
http://www.ad-rotator.com/ - Free ad rotating system for small websites - Stop Ctrl-P/Ctrl-C the ad code!

------
Son

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

I don't what to do...

a few thoughts:
are you handling all the files 'at the same time'? or one then the other, etc.?
how big are the files?

They have: 60 posts

Joined: Aug 2000

I solved it, but it was another problem, nothing with file operations
The problem is at
$var = 'HTML Code.....
code again.....
code again.....
code again.....
code again..... ';

At least I think so! But do you know what is the problem with having such a structure?
I changed to
$var .= ....
$var .= ....
$var .= ....
and it's fine now! Thanks a lot

http://new.123finder.com/ - Helps you find cool domains for FREE & Registers it for only $14.95/yr
http://www.ad-rotator.com/ - Free ad rotating system for small websites - Stop Ctrl-P/Ctrl-C the ad code!

------
Son

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

I don't think you can have multiple lines with '
try:

var = q~code
code
code
~;

q = '
qq = "

choose a delimiter after the q's (I used ~)

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

here's a Q for you...
why would that make a 'Connection Timed Out' error?

They have: 60 posts

Joined: Aug 2000

Yeah, it worked with 2 checkboxes, but not 3,4...
I don't know, anybody explains???

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.