Hi everyone.
My problem is that I would like to use Curl on a php page to go out and use the inventory.overture.com tool for some keyword research then to return only the result that I queries for, without leaving the page or at least not displaying that it went to inventory.overture.com.
I have no idea how to use curl and would love to understand by this application of it. I tried a couple of things and they do not return what I expect. The code in case you are curious:
I appreciate any feedback, examples, fixes or tutorials.
Web site design, internet marketing, SEO and business solutions company.
My problem is that I would like to use Curl on a php page to go out and use the inventory.overture.com tool for some keyword research then to return only the result that I queries for, without leaving the page or at least not displaying that it went to inventory.overture.com.
I have no idea how to use curl and would love to understand by this application of it. I tried a couple of things and they do not return what I expect. The code in case you are curious:
Code:
<?php
$HTTP_method = 'http';
$hostname = '[URL unfurl="true"]http://inventory.overture.com';[/URL]
$cgi = '/d/searchinventory/suggestion/?term=';
$domainc = '[URL unfurl="true"]www.website.com;[/URL]
$curl_handle = curl_init ();
curl_setopt ($curl_handle, CURLOPT_URL, $HTTP_method . '://' . $hostname . $cgi . $domainc);
curl_setopt ($curl_handle, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl_handle, CURLOPT_POST, 1);
curl_setopt($curl_handle, CURLOPT_HEADER, 1);
curl_setopt($curl_handle, CURLOPT_REFERER,"[URL unfurl="true"]http://www.website.com");[/URL]
//curl_setopt($curl_handle, CURLOPT_COOKIEFILE,"cookiefile");
//curl_setopt($curl_handle, CURLOPT_COOKIEJAR,"cookiefile");
$result = curl_exec ($curl_handle) or die ('There has been an error');
curl_close ($curl_handle);
print $result;
?>
I appreciate any feedback, examples, fixes or tutorials.
Web site design, internet marketing, SEO and business solutions company.