Telnet and control characters - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Telnet and control characters (/showthread.php?tid=29626) |
Telnet and control characters - El Forum - 04-15-2010 [eluser]dsloan[/eluser] This isn't directly related to CodeIgniter, but forms part of my CI application. A Windows application running on the same box as the application can be accessed via telnet, and a string containing control characters sent to it to retrieve data. This is working fine when I perform the access from a command prompt - e.g. Code: telnet 192.168.1.10 3002 How do I send the same string via my php application? My code can establish the connection ok, but I don't know how to construct the string. Code: $fp = fsockopen ($host, $port, $errnum, $errstr, $timeout); Any ideas? |