Файловый менеджер - Редактировать - /home/umudio/public_html/repo/searchthesite.php.tar
Назад
home/umudio/public_html/OLD/searchthesite.php 0000644 00000001237 14773626463 0015307 0 ustar 00 <?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); ?>