i am using the fsockopen() to connect to a website and import the html code from there.
the code basically works fine. i have no problems running the application on server A - on server B on the other side (both LAMP, both php 4.3.3) it seems to work fine to a certain point. what is not working right is, that the incoming stream seems to break off way too early. the full html code i am trying to import has around 15.000 characters (no problem to grab that on server A) - on server B it only imports either 2526, 3906, 8046 or 5286 characters (these are the ONLY values that repeatedly came up after 20 reloads...)
so my questions are:
1.) is there a parameter/variable in php that limits the fsockopen() operations? (default_socket_timeout = 60) what other reason could this have?
2.) are there any other issues known to you that could cause this behaviour?
3.) does anybody have an idea how to override/fix this problem?
any help will be greatly appreciated since my deadline is approaching quickly...
rock on!
sid