Active
Project:
Amazon Product Advertisement API
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2013 at 20:31 UTC
Updated:
24 Mar 2013 at 22:14 UTC
I have noticed that sometimes the results of the Amazon filter are unpredictable. For instance, in the code below I am looking for the author name and for the editorial review, both in HTML and in PHP. In HTML, the results are OK in both cases. When I try to get the same results in PHP, however, only the first one is OK, and the second one leads to a PHP error, even though we're using the same data in all four cases. I think this is a bug - or if I'm doing something wrong, please indicate how to get the data in the fourth case too.
In a plain HTML environment, this works:<br>
[amazon 0195157990 author]
<br>And this works too:<br>
[amazon 0195157990 editorialreview]
<br>
<?php
echo "<br>In a PHP environment, this works: <br>";
$authorname = "[amazon 0195157990 author]";
echo "<br>This works: <br>" . $authorname;
// The code below leads to an error.
//$somereview = "[amazon 0195157990 editorialreview]";
//echo $somereview;
//Parse error: syntax error, unexpected T_STRING in E:\xampp\htdocs\dru721\modules\php\php.module(80) : eval()'d code on line 12
?>
Comments
Comment #1
modul commentedAnyone who can confirm this problem - or better still: rectify it?
Comment #2
modul commentedDon't want to sound "pushy"... But can anyone replicate my problem, or preferably solve it?
Comment #3
modul commentedYes, I do feel pushy... Still: anyone who can shed some light on this matter?
Comment #3.0
modul commentedJust a grammatical correction