18 lines
442 B
PHP
18 lines
442 B
PHP
|
|
<?php
|
||
|
|
// create curl resource
|
||
|
|
$ch = curl_init();
|
||
|
|
|
||
|
|
// set url
|
||
|
|
curl_setopt($ch, CURLOPT_URL, "198.143.164.251");
|
||
|
|
|
||
|
|
//return the transfer as a string
|
||
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||
|
|
|
||
|
|
// $output contains the output string
|
||
|
|
$output = curl_exec($ch);
|
||
|
|
|
||
|
|
// close curl resource to free up system resources
|
||
|
|
curl_close($ch);
|
||
|
|
|
||
|
|
echo $output;
|
||
|
|
?>
|