I want to show prices and search items on my external site but am having a problem.
I have:
<?php
$common_baseHREF = "http://www.papillonnet.com/pricetap/";
$common_path = "/home/papillon/public_html/pricetap/";
$_GET["q"] = "{LINKTITLE}";
require($common_path."pricesExternal.php");
?>
<?php
$common_path = "/home/papillon/public_html/pricetap/";
$common_baseHREF = "http://www.papillonnet.com/pricetap/";
$_GET["q"] = "{LINKPRODUCT}";
require($common_path."searchExternal.php");
?>
Obviously the conditional and {variables} are with my other script.
However, all I get is the following error:
Fatal error: Cannot redeclare javascript_focus() (previously declared in /home/papillon/public_html/pricetap/includes/javascript.php:2) in /home/papillon/public_html/pricetap/includes/javascript.php on line 14
Hi,
Sorry about that - i've fixed the files so that they can be together / more than once. The error was caused by the scripts trying to include files that had already been included. If you download the latest versions from:
http://www.pricetapestry.com/node/2289
...it should then work fine.
Cheers,
David.