<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Parse error: syntax error, unexpected T_CLASS in... AuthorizeNetRequest.php on line 8 in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Parse-error-syntax-error-unexpected-T-CLASS-in/m-p/13366#M8006</link>
    <description>&lt;P&gt;&lt;STRONG&gt;EDIT: &amp;nbsp;&lt;/STRONG&gt;/sigh -- that was easy. &amp;nbsp;I'll leave here in case someone else is in the same boat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was one...&lt;/P&gt;&lt;P&gt;echo "The current PHP version being used is: " . phpversion ();&lt;/P&gt;&lt;P&gt;... away from seeing:&lt;/P&gt;&lt;P&gt;"The current PHP version being used is: 4.4.9"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Req of 5.2 here:&amp;nbsp;&lt;A href="http://developer.authorize.net/downloads/" target="_blank" rel="nofollow"&gt;http://developer.authorize.net/downloads/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case (1and1), you can create an .htaccess file in the site's root folder with the following line:&lt;/P&gt;&lt;P&gt;AddType x-mapp-php5 .php&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Voila.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've written a site that worked on my local box, then worked perfectly with a return page on my own business website. &amp;nbsp;But now that I've moved it to the client's server, it's busted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm now testing with a file that only has this line in it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;lt;?php require_once 'anet_php_sdk/AuthorizeNet.php'; // Include the SDK you downloaded in Step 2 ?&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;... and I still get...&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-family: Times; line-height: normal; font-size: medium;"&gt;&lt;STRONG&gt;Parse error&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times; line-height: normal; font-size: medium;"&gt;: syntax error, unexpected T_CLASS in&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times; line-height: normal; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times; line-height: normal; font-size: medium;"&gt;&lt;STRONG&gt;/[path removed]/anet_php_sdk/lib/shared/AuthorizeNetRequest.php&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times; line-height: normal; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times; line-height: normal; font-size: medium;"&gt;on line&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times; line-height: normal; font-size: medium;"&gt;&amp;nbsp;&lt;STRONG&gt;8&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000" face="Times"&gt;&lt;SPAN style="line-height: normal; font-size: medium;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: normal; color: #333333; font-family: helvetica; font-size: 12px; line-height: 16px;"&gt;I've tried messing with the file a bit to make sure the server's seeing it, adding lines, etc, and that's fine. &amp;nbsp;I've &lt;A href="http://community.developer.authorize.net/t5/Integration-and-Testing/PHP-Syntax-Error/m-p/9700#M6343" target="_self"&gt;re-download, as suggested&lt;/A&gt;, even tried different versions. &amp;nbsp;Still get the error.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000" face="Times"&gt;&lt;SPAN style="line-height: normal; font-size: medium;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: normal; color: #333333; font-family: helvetica; font-size: 12px; line-height: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000" face="Times"&gt;&lt;SPAN style="line-height: normal; font-size: medium;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: normal; color: #333333; font-family: helvetica; font-size: 12px; line-height: 16px;"&gt;Is there a minimum php requirement or needed module I should be checking for?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 05 Jun 2011 05:27:56 GMT</pubDate>
    <dc:creator>rufwork</dc:creator>
    <dc:date>2011-06-05T05:27:56Z</dc:date>
    <item>
      <title>Parse error: syntax error, unexpected T_CLASS in... AuthorizeNetRequest.php on line 8</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Parse-error-syntax-error-unexpected-T-CLASS-in/m-p/13366#M8006</link>
      <description>&lt;P&gt;&lt;STRONG&gt;EDIT: &amp;nbsp;&lt;/STRONG&gt;/sigh -- that was easy. &amp;nbsp;I'll leave here in case someone else is in the same boat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was one...&lt;/P&gt;&lt;P&gt;echo "The current PHP version being used is: " . phpversion ();&lt;/P&gt;&lt;P&gt;... away from seeing:&lt;/P&gt;&lt;P&gt;"The current PHP version being used is: 4.4.9"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Req of 5.2 here:&amp;nbsp;&lt;A href="http://developer.authorize.net/downloads/" target="_blank" rel="nofollow"&gt;http://developer.authorize.net/downloads/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case (1and1), you can create an .htaccess file in the site's root folder with the following line:&lt;/P&gt;&lt;P&gt;AddType x-mapp-php5 .php&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Voila.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've written a site that worked on my local box, then worked perfectly with a return page on my own business website. &amp;nbsp;But now that I've moved it to the client's server, it's busted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm now testing with a file that only has this line in it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;lt;?php require_once 'anet_php_sdk/AuthorizeNet.php'; // Include the SDK you downloaded in Step 2 ?&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;... and I still get...&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-family: Times; line-height: normal; font-size: medium;"&gt;&lt;STRONG&gt;Parse error&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times; line-height: normal; font-size: medium;"&gt;: syntax error, unexpected T_CLASS in&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times; line-height: normal; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times; line-height: normal; font-size: medium;"&gt;&lt;STRONG&gt;/[path removed]/anet_php_sdk/lib/shared/AuthorizeNetRequest.php&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times; line-height: normal; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times; line-height: normal; font-size: medium;"&gt;on line&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times; line-height: normal; font-size: medium;"&gt;&amp;nbsp;&lt;STRONG&gt;8&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000" face="Times"&gt;&lt;SPAN style="line-height: normal; font-size: medium;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: normal; color: #333333; font-family: helvetica; font-size: 12px; line-height: 16px;"&gt;I've tried messing with the file a bit to make sure the server's seeing it, adding lines, etc, and that's fine. &amp;nbsp;I've &lt;A href="http://community.developer.authorize.net/t5/Integration-and-Testing/PHP-Syntax-Error/m-p/9700#M6343" target="_self"&gt;re-download, as suggested&lt;/A&gt;, even tried different versions. &amp;nbsp;Still get the error.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000" face="Times"&gt;&lt;SPAN style="line-height: normal; font-size: medium;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: normal; color: #333333; font-family: helvetica; font-size: 12px; line-height: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000" face="Times"&gt;&lt;SPAN style="line-height: normal; font-size: medium;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: normal; color: #333333; font-family: helvetica; font-size: 12px; line-height: 16px;"&gt;Is there a minimum php requirement or needed module I should be checking for?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 05 Jun 2011 05:27:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Parse-error-syntax-error-unexpected-T-CLASS-in/m-p/13366#M8006</guid>
      <dc:creator>rufwork</dc:creator>
      <dc:date>2011-06-05T05:27:56Z</dc:date>
    </item>
  </channel>
</rss>

