Skip to content

Instantly share code, notes, and snippets.

@hiraq
Created March 24, 2012 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiraq/2177610 to your computer and use it in GitHub Desktop.
Save hiraq/2177610 to your computer and use it in GitHub Desktop.
Library installations
<?php
define('ROOT',dirname(__FILE__));
define('DS',DIRECTORY_SEPARATOR);
//add my library folder into your include_path
set_include_path(get_include_path().PATH_SEPARATOR.ROOT.DS.'php-amazon-pa-wrapper');
require_once 'Amazon.php';
use AmazonProductAdvertising\Amazon as Amazon;
use AmazonProductAdvertising\Amazon\Exception as Amazon_Exception;
//set autoload lib
Amazon::set_autoload();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment