$page = implode ('', file ("http://examplesite/index.cgi?prod_id=" .$product_sku. ";vendor=" .$mf_name. ";shopname=url;lang=UK"));
$mysite = $_SERVER['PHP_SELF'].'?link='; // request this page
$page = preg_replace("/<a href=\"(.*)\">/i", "<a href=\"$mysite\\1\">", $page);
echo $page;
Now i can't find a way to get this work.
I need product_sku and mf_name to be collected from a joomla vm site and implode this external link into my joomla vm site.
Any help?