I am facing a weird problem. This is a POP account creation script. If I run it from my Win2000 PC, it creates the POP account. But when I run this script from the Linux server (CPanel is also on that server), it does not create any POP account.
<?
$host = "hostname";
$socket = fsockopen($host,2082);
socket_set_timeout($socket,30);
$cpaneluser = "cpanel_username";
$cpanelpass = "cpanel_password";
$authstr = "$cpaneluser:$cpanelpass";
$domain = "domainname";
$email="desired_username";
$password="desired_password";
$quota=10;
$pass = base64_encode($authstr);
$in = "GET /frontend/bluelagoon/mail/doaddpop.html?email=$email&domain=$domain&password=$password"a=$quota HTTP/1.0\r\nAuthorization: Basic $pass \r\n\r\n";
print $in;
fputs($socket,$in);
fclose( $socket );
?>
For information sake, the PHP version on Win2000 is 4.3.1 and on Linux is 4.3.4 (tried it also on 4.3.3).
Any help will be highly appreciated.
K Singh