Use Curl via Proxy
if need authentication username and password, please add this line :<?php
$ch
= curl_init(
"http://www.jaringankantor.com/"
); //web page yang mau ditampilin
curl_setopt(
$ch
, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt(
$ch
, CURLOPT_PROXY,
"152.118.191.5"
);
//proxy IP
curl_setopt(
$ch
, CURLOPT_PROXYPORT, "8080" );
// port proxy
$result
= curl_exec(
$ch
);
echo
$result
;
curl_close(
$ch
);
?>
curl_setopt (
$ch
, CURLOPT_PROXYUSERPWD,
"yourusername:yourpassword"
);
Kalau kurang jelas silahkan bertanya
ReplyDeleteOke Pak :)
ReplyDelete