Zubrag.com :: Forum

zubrag.com => cPanel Scripts => Topic started by: zubrag on March 01, 2007, 04:47:26 AM



Title: cPanel Subdomains Creator: socket error
Post by: zubrag on March 01, 2007, 04:47:26 AM
Posted in comments section of cPanel Sub-domain creator (http://www.zubrag.com/scripts/cpanel-subdomains-creator.php):

please  help sokket error

How to resolve

If you have problems with sockets, try replacing

$result = subd('localhost',2082,$cpaneluser,$cpanelpass,$request);

with

$cpanelhost = "website.com";
$result = file_get_contents("http://$cpaneluser:$cpanelpass@$cpanelhost:2082".$request;

note: replace website.com with correct domain name