I'm trying to use PHP in the Order API (to access PHP library on back end). I've searched the forum and found some hints. I created my script to execute in the PHP CLI directly and saved it as a PL file. I accessed it directly and it worked dandy. However, when I tested buying a product, it came up with the following error:
[24-Sep-2009 16:37:05] PHP Parse error: syntax error, unexpected T_STRING in <... my path...>/shop/sc/thankyou.cgi on line 2298
Of course the thankyou.cgi file is compiled or encrypted or something...
I can put a very simple file that just echos a simple string and it still gets this error. If I pop in the CGI file, it works just fine.
my phptest.pl file looks like this:
- Code: Select all
#!/usr/bin/php -q
<?php
echo "<p>Dan was here!!</p>";
?>
I'm not so good with CGI/Perl, but pretty experienced with PHP. Any help to get me up and running is MUCH appreciated...
Thanks!