Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: fsockopen()


Message #1 by "Toppi" <toppi@k...> on Sun, 12 Jan 2003 20:58:35
Hi there,

someone ever tried using fsockopen() to a ssl ftp ?

When using 

$this->_sock = fsockopen($server, $port, $errno, $errstr, $this->timeout);

im getting this

Trying to ssl://blahblah.com:1234 ...

Warning: fsockopen() [function.fsockopen]: 
php_stream_sock_ssl_activate_with_method: SSL handshake/connection failed 
in /ftpclass.php on line 206
Warning: fsockopen() [function.fsockopen]: failed to activate SSL mode 1 
in /ftpclass.php on line 206
-2.0-OpenSSH_3.4p1
500 '?Z': Command not understood.


I cant/wont use "php's standart ftp_ssl_connect()". I realy need a 
filepointer back to use fgets, fputs etc....

Any help is welcome, maybe a lil piece of code "howto code a handshake" or 
whatever

Thank you ;-)  

  Return to Index