PHP Classes

Class doesn't work

Recommend this page to a friend!

      SOCKS 5  >  All threads  >  Class doesn't work  >  (Un) Subscribe thread alerts  
Subject:Class doesn't work
Summary:Warning: unpack(): Type C: not enough input, need 1, have 0
Messages:5
Author:Jack Frusciante
Date:2004-12-16 20:31:28
Update:2009-04-14 01:23:51
 

  1. Class doesn't work   Reply   Report abuse  
Picture of Jack Frusciante Jack Frusciante - 2004-12-16 20:31:28
Hi, your class don't work for me.

In this line

$responce = unpack("Cversion/Cresult/Creg/Ctype/Lip/Sport", $buf["recv"]);

in the connet function i always receive this warning

Warning: unpack(): Type C: not enough input, need 1, have 0

because $buf["recv"] is empty.

I tried some socks servers and always the same warning.

I would like to use your class for a simple ftp client in php, can you help me?




  2. Re: Class doesn't work   Reply   Report abuse  
Picture of Ilya S Ilya S - 2005-10-12 10:52:32 - In reply to message 1 from Jack Frusciante
Have the same error on 100% working socks server :(

  3. Re: Class doesn't work   Reply   Report abuse  
Picture of splitice splitice - 2007-10-04 09:58:09 - In reply to message 2 from Ilya S
same with me trying to connect through a virtual proxy on my own pc, the class simply dosent work.

  4. Re: Class doesn't work   Reply   Report abuse  
Picture of Gunter Grodotzki Gunter Grodotzki - 2008-12-26 12:32:27 - In reply to message 3 from splitice
to all:

check out my socks5 class (originated from this one) which I made as I encountered exact the same problems: http://www.phpclasses.org/browse/package/5049.html

it works 100% (under php5 and "sockets" enabled) and it includes some additional features (like socks5 user/pass authentication)

  5. Re: Class doesn't work   Reply   Report abuse  
Picture of xjust xjust - 2009-04-14 01:23:51 - In reply to message 4 from Gunter Grodotzki
thanks a lot for your new and improved class. is there any way to 'emulate' a fsockopen based on this one ?