<?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 Install the Paypal SDK for PHP in Archive</title>
    <link>https://business.forums.bt.com/t5/Archive/Install-the-Paypal-SDK-for-PHP/m-p/39991#M25511</link>
    <description>&lt;DIV class="post"&gt;Our shared servers do not provide shell or commandline access. You can still install the SDK manually rather than with their install.php&lt;BR /&gt;&lt;BR /&gt;1. Unpack the SDK to your local machine.&lt;BR /&gt;&lt;BR /&gt;2. FTP&amp;nbsp; into your server.&lt;BR /&gt;&lt;BR /&gt;3. Create a directory in the root folder to hold the libraries. We are placing it under the root for security.&lt;BR /&gt;&lt;BR /&gt;4. Copy the /lib/ folder from the SDK package into the new directory on your server.&lt;BR /&gt;&lt;BR /&gt;5. Copy the samples folder from the SDK into a directory under public_html. You can place the /samples/ directory in public_html or into another subfolder of it if you like.&lt;BR /&gt;&lt;BR /&gt;6. On your desktop, create a new file in a text editor.&lt;BR /&gt;&lt;BR /&gt;7. Copy the following code into your text editor:&lt;BR /&gt;&lt;BR /&gt;Code:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;?php&lt;BR /&gt;&lt;BR /&gt;$sdk_dir = "/home/username/pathtolib/";&lt;BR /&gt;$include_path = ini_get('include_path');if(!stristr($sdk_dir,$include_path))&lt;BR /&gt;{&lt;BR /&gt;ini_set('include_path',$include_path . PATH_SEPARATOR . $sdk_dir)&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Edit the value of $sdk_dir to be the full path to the /lib/ folder you uploaded in step 4.&lt;BR /&gt;&lt;BR /&gt;i.e. If you installed /lib/ into /home/username/, the full path would be "/home/username/lib/ (Change username to cpanel username)&lt;BR /&gt;&lt;BR /&gt;9. Save the file as filename 'ppsdk_include_path.inc'&lt;BR /&gt;&lt;BR /&gt;10. Upload the file into the /samples/php directory with the other sample files assuming you are using PHP.&lt;BR /&gt;&lt;BR /&gt;11. In your browser, browse to the samples/php directory on your server and test. You may login to your Paypal Sandbox and test with the default sandbox API profile.&lt;/DIV&gt;&lt;DIV class="post"&gt;_____________&lt;/DIV&gt;&lt;DIV&gt;abirhasan &lt;IMG src="http://imagicon.info/cat/12-1/text-smiley.png" /&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 24 May 2012 07:47:11 GMT</pubDate>
    <dc:creator>abirhasan</dc:creator>
    <dc:date>2012-05-24T07:47:11Z</dc:date>
    <item>
      <title>Install the Paypal SDK for PHP</title>
      <link>https://business.forums.bt.com/t5/Archive/Install-the-Paypal-SDK-for-PHP/m-p/39991#M25511</link>
      <description>&lt;DIV class="post"&gt;Our shared servers do not provide shell or commandline access. You can still install the SDK manually rather than with their install.php&lt;BR /&gt;&lt;BR /&gt;1. Unpack the SDK to your local machine.&lt;BR /&gt;&lt;BR /&gt;2. FTP&amp;nbsp; into your server.&lt;BR /&gt;&lt;BR /&gt;3. Create a directory in the root folder to hold the libraries. We are placing it under the root for security.&lt;BR /&gt;&lt;BR /&gt;4. Copy the /lib/ folder from the SDK package into the new directory on your server.&lt;BR /&gt;&lt;BR /&gt;5. Copy the samples folder from the SDK into a directory under public_html. You can place the /samples/ directory in public_html or into another subfolder of it if you like.&lt;BR /&gt;&lt;BR /&gt;6. On your desktop, create a new file in a text editor.&lt;BR /&gt;&lt;BR /&gt;7. Copy the following code into your text editor:&lt;BR /&gt;&lt;BR /&gt;Code:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;?php&lt;BR /&gt;&lt;BR /&gt;$sdk_dir = "/home/username/pathtolib/";&lt;BR /&gt;$include_path = ini_get('include_path');if(!stristr($sdk_dir,$include_path))&lt;BR /&gt;{&lt;BR /&gt;ini_set('include_path',$include_path . PATH_SEPARATOR . $sdk_dir)&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Edit the value of $sdk_dir to be the full path to the /lib/ folder you uploaded in step 4.&lt;BR /&gt;&lt;BR /&gt;i.e. If you installed /lib/ into /home/username/, the full path would be "/home/username/lib/ (Change username to cpanel username)&lt;BR /&gt;&lt;BR /&gt;9. Save the file as filename 'ppsdk_include_path.inc'&lt;BR /&gt;&lt;BR /&gt;10. Upload the file into the /samples/php directory with the other sample files assuming you are using PHP.&lt;BR /&gt;&lt;BR /&gt;11. In your browser, browse to the samples/php directory on your server and test. You may login to your Paypal Sandbox and test with the default sandbox API profile.&lt;/DIV&gt;&lt;DIV class="post"&gt;_____________&lt;/DIV&gt;&lt;DIV&gt;abirhasan &lt;IMG src="http://imagicon.info/cat/12-1/text-smiley.png" /&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 May 2012 07:47:11 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/Install-the-Paypal-SDK-for-PHP/m-p/39991#M25511</guid>
      <dc:creator>abirhasan</dc:creator>
      <dc:date>2012-05-24T07:47:11Z</dc:date>
    </item>
  </channel>
</rss>

