larsisgoed9
Verified User
- Joined
- Mar 23, 2011
- Messages
- 10
How could I get that API call to werk?
I mean, how can I fetch the outputted data..
Right now I got this code:
So how could I split each domain into an for loop?
I mean, how can I fetch the outputted data..
Right now I got this code:
Code:
require( 'inc/class/direct/class.httpsocket.php' );
$Socket = new HTTPSocket;
$Socket->connect( $core[ 'conf' ][ 'direct' ][ 'server' ], 2222 );
$Socket->set_login( $core[ 'conf' ][ 'direct' ][ 'user' ], $core[ 'conf' ][ 'direct' ][ 'pass' ] );
$Socket->set_method( 'GET' );
$Socket->query('/CMD_API_ADDITIONAL_DOMAINS');
$newArray = $Socket->direct2array( $Socket->fetch_body( ) );
echo $Socket->fetch_body( );
So how could I split each domain into an for loop?