Problem showing user package.

overhosted

Verified User
Joined
Feb 1, 2004
Messages
21
Location
Holland
Hello all,

I am using the phpclass of l0rdphi,

with this code(script called da.php):
PHP:
<?php 

include 'httpsocket.php'; 

$sock = new HTTPSocket; 

$sock->connect('https://notimportant.',2222); 
$sock->set_login('admin','noway....'); 

$sock->query('/CMD_API_PACKAGES_USER'); 
$result = $sock->fetch_parsed_body(); 

print_r($result); 
print_r($sock->error); 
?>


But it gives this error:

Array ( ) Array ( [0] => 0 - )

Does anyone have a idea?

I would be most gratefull!

Thank you,

Kevin Overtoom
 
Hello,

You're using an HTTPS connection. Do you have OpenSSL complied into PHP? (see this for how.)

Besides that, once OpenSSL works, you may need to use ssl:// in place of https://

Let us know how it goes.
 
Well, you were right about the https (programming late isn't good). I just use http

But it still gives the same error.

But thanks for the tip.
 
Back
Top