I\'d like to access a camera through it\'s Telnet capability. The problem is, it has Password-protection. This is no problem when doing it via Terminal, as I just use
You just output it. Some examples I've seen use fputs
. You might have to sleep for a second to make sure the prompt comes up. There's actually an example in the comments on the fsockopen
manual page: http://php.net/manual/en/function.fsockopen.php
Really though I'd recommend looking for a module that does this. A quick google shows there are several out there. I don't want to recommend a particular one because I haven't used any of them.