HI
im trying to use the searchExternal.php to display 1 product within a wordpress blog post, i have followed a post in regards to configuring SearchExternal.php, but im getting the following Error message:
Warning: Unknown(/home/content/j/u/s/XXX/html/cpm/pt/ sin_searchExternal.php): failed to open stream: No such file or directory in /home/content/j/u/s/XXX/html/cpm/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()'d code on line 5
Fatal error: (null)() [function.require]: Failed opening required '/home/content/j/u/s/XXXX/html/cpm/pt/ sin_searchExternal.php' (include_path='.:/usr/local/lib/php') in /home/content/j/u/s/XXXX/html/cpm/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()'d code on line 5
Im using Exec-php plugin to execute the script on a post
<?php
$common_baseHREF = "http://www.XXXX.co.uk/pt/";
$common_path = "/home/content/j/u/s/justrebecca/html/cpm/pt/ ";
$_GET["q"] = "brand:Alcatel";
require($common_path."sin_searchExternal.php");
?>
What i actually want to do is to display the following in a Blog post
Name of product
Description
Best Price ( Maybe top 5)
Buy
any help would be great
Hi,
It looks like the problem is just down to a space on the end of your $common_path variable, you have:
$common_path = "/home/content/j/u/s/justrebecca/html/cpm/pt/ ";
...that should be just:
$common_path = "/home/content/j/u/s/justrebecca/html/cpm/pt/";
Hope this helps!
Cheers,
David.
--
PriceTapestry.com