Page 1 of 1

maximum length of include() string?

Posted: Mon Jan 17, 2005 10:06 am
by batfastad
Hi

Does anyone know of the figure for the maximum length of the string that can go in the include() language construct?

Thanks

Ben

Posted: Mon Jan 17, 2005 10:09 am
by feyd
that's probably OS dependant.. like Windows supports long paths up to 256 characters in length, including all slashes and things.

Posted: Mon Jan 17, 2005 11:30 am
by batfastad
OK,

Because I'm trying to include a remote database query using http

I think the OS of my ISPs server is Free BSD but I'm not sure which version.

My query seems to be working but I worry that it might break if the user searching, exceeds the number of chars.

Guess I'll just have to test it.

Thanks

Ben

Posted: Mon Jan 17, 2005 11:43 am
by feyd
If possible, I'd suggest using curl or fsockopen() to do it, to either do a POST, or more internal GET request.

Posted: Mon Jan 17, 2005 12:04 pm
by batfastad
Yeah I think you're right

Thanks for that suggestion.

Ben