Файловый менеджер - Редактировать - /home/umudio/public_html/OLD/searchthesite.php
Назад
<?php //I am here now, for the querying Transaction $url="http://www.google.com/cse"; $request="cx=" . $_GET['cx'] . "&q=" . $_GET['q']; $fullurl=$url ."?". $request; // Get cURL resource $curl = curl_init(); // Set some options - we are passing in a useragent too here curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => $fullurl, CURLOPT_SSL_VERIFYPEER => 0 )); // Send the request & save response to $resp $resp = curl_exec($curl); // Handling Errors if(!curl_exec($curl)){ die('Error: "' . curl_error($curl) . '" - Code: ' . curl_errno($curl)); } // Close request to clear up some resources curl_close($curl); print_r($resp); ?>
| ver. 1.4 |
Github
|
.
| PHP 5.6.40 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка