Hi all i need a program creating for one of my projects this is what i want it to create exactly as below.
Prefer a desktop program giving me a choice of where i can export the pages created.
Must be able to accept hundreds of keyword phrases
when i enter the keyword list in the program it must create [login to view URL] page
I would like to create a template first then the info added automatically to every page see below
eg keywords = audi dealer parts
eg this is how i want the source code to be made after and the program will create [login to view URL]
the keyword phrase needs to aoutmaticaly added as shown below between the head tags and take notice of the $keyword = "audi+dealer+parts"; in the search code half way down the page (needs to be + between)
<html>
<head>
<TITLE>audi dealer parts</TITLE>
<meta name="keywords" content="audi dealer parts">
<meta name="description" content="For all your audi dealer parts">
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<link href="/style.css" rel="stylesheet" type="text/css" />
</head>
<style>
.srchtitle{
font-family:arial;
font-size:17px;
color:blue;
}
.srchtitle a{
text-decoration:none;
}
.srchdesc{
font-family:arial;
font-size:15px;
color:black;
}
.srchdislink{
font-family:arial;
font-size:13px;
color:green;
}
</style>
<?php
$keyword = "audi+dealer+parts";
$apikey = "2E47C75C0E76D9DF78B08E5E710990E00776CF81";
$bingurl = "[login to view URL];.$apikey."&Version=2.2&Market=en-GB&Query=".$keyword."&Sources=web&Web.Count=20";
$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,$bingurl);
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,10);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
$r = curl_exec($curl_handle);
curl_close($curl_handle);
$s = "0";
require_once "class.xmltoarray.php";
$arrayData = xml2ary($r);
while($s<"20"){
$title = $arrayData["SearchResponse"]["_c"]["web:Web"]["_c"]["web:Results"]["_c"]["web:WebResult"][$s]["_c"]["web:Title"]["_v"];
$description = $arrayData["SearchResponse"]["_c"]["web:Web"]["_c"]["web:Results"]["_c"]["web:WebResult"][$s]["_c"]["web:Description"]["_v"];
$link = $arrayData["SearchResponse"]["_c"]["web:Web"]["_c"]["web:Results"]["_c"]["web:WebResult"][$s]["_c"]["web:Url"]["_v"];
$dislink = $arrayData["SearchResponse"]["_c"]["web:Web"]["_c"]["web:Results"]["_c"]["web:WebResult"][$s]["_c"]["web:DisplayUrl"]["_v"];
if(!$title==""){
echo "<span class=srchtitle><a href=$link>$title</a></span><br><span class=srchdesc>$description</span><br><span class=srchdislink>$dislink</span><br><br>";
}
$s++;
}
?>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
Regards
Lee