PHProxy

PHProxy | SourceForge.net

OPEN SOCKET TO SERVER

$_retry = false;
$_socket = @fsockopen(($_url_parts['scheme'] === 'https' && $_system['ssl'] ? 'ssl://' : 'tcp://') . $_url_parts['host'], $_url_parts['port'], $err_no, $err_str, 30);

replace with:

$_retry = false;
if ($_url_parts['scheme'] == "http") {
$_socket = @fsockopen(localhost, 3128, $err_no, $err_str, 30);
} else {
$_socket = @fsockopen(($_url_parts['scheme'] === 'https' && $_system['ssl'] ? 'ssl://' : 'tcp://') . $_url_parts['host'], $_url_parts['port'], $err_no, $err_str, 30);
}

Leave a Reply