Thank you for the suggestion to upgrade weedpacket.. and tSinka--> many thanks for letting me know about this netcat.. i havent used it but i will make sure it is of some use to me, even if it will not be useful in solving my current problems! :evilgrin: the question i have now is::- is it possible to embed code in my php scripts that use netcat functionality to 'improvise' the use of fsockopen? the commands u gave me show that this is a command prompt driven software- does this mean it has to be run externally?
i checked and noticed my php_info() shows safe_mode is enabled... i have across many forums mentioning that this affects fsockopen() with timeout from function properly- is this true? please explain to me (or forward me a link to some explanation on how safe_mode_enabled affects fsockopen() (and possibly fopen()...) BUT the server on which we are running our php web-apps is dedicated to us! this means we can have the safe_mode disabled ya? but what will be the implications of this?
in addition to the above paragraph-> this is how this whole scenario of wanting to use fsockopen() is laid out->
our php engine (with web-apps) is on server1, and an sms gateway (running on another of OUR dedicated servers) is on server2 (running JAVA, not PHP)... (so we always initiate connections FROM server1 TO server2)
i want to use fsockopen (or any other alternative) to check if a certain service on port X on server2 is available..
this is what confuses when we talk about safe_mode enabled =1/0 on server1 being the cause of fsockopen not working, isnt it supposed to be the other way round?? -> that is if server2 (the one that server1 is initiating a connection) is safe_enabled then the when server1 tries to use fsockopen() to connect it will be denied by server2?
thanks for ur help, and i will appreciate some more! 🙂
Faz