Recent Topics

1 Nov 01, 2007 19:05    

Apparently you have to create a new page (how?), copy in php text from their website (see copy below), and you have a means of exchanging links with other websites.

What do you think?

Thanks

Blake

<?php

 /*
   Link Market Link Page Module
   Copyright 2003 Link Market, All Rights Reserved.

   WARNING: Do not changecode below or your link page will not work!
 */

 $user_id = "ztFsCbnrkWc=";

 $url = "http://api.linkmarket.com/mng_dir/get_links.php?user_id="
	    .$user_id."&cid=".$_GET['cid']."&start=".$_GET['start']."";

echo GetLMDSContent($url);

function GetLMDSContent($url)
{
$buffer = ""; 
$urlArr = parse_url($url);
if($urlArr[query])
{
$urlArr[query] = "?".$urlArr[query];
}

$fp = fsockopen($urlArr[host], 80, $errno, $errstr, 30);
if (!$fp){echo "$errstr ($errno)<br />\n";}
else
{
$out = "GET /".substr($urlArr[path], 1).$urlArr[query]." HTTP/1.0\r\n";
$out .= "Host: ".$urlArr[host]."\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp))
{
$buffer .= fgets($fp, 128);
} 
fclose($fp);
}

$buffer = strstr($buffer,"\r\n\r\n");

return $buffer;
}

?>

*edit* Please use [ php]<!-- your code here -->[/php] tags ;)


Form is loading...