Coder Social home page Coder Social logo

exeu / amazon-ecs-php-library Goto Github PK

View Code? Open in Web Editor NEW
238.0 238.0 99.0 1.5 MB

This library is no longer maintained! Please have a look at my new amazon Lib at: https://github.com/Exeu/apai-io

Home Page: https://github.com/Exeu/apai-io

License: GNU General Public License v3.0

Shell 0.50% PHP 99.50%

amazon-ecs-php-library's People

Contributors

dspasic avatar exeu avatar julien-c avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amazon-ecs-php-library's Issues

sorting the output

i want to get the output sorted by price right now i'm using

     $response = $amazonEcs->responseGroup('Images,ItemAttributes')->optionalParameters(array('ItemPage' =>$page))->category($category)->search($q);

plz help me out

Question: Changing page & Limting results

Two questions.

  1. What do you use to change the number of results per page as I can't find it I have tried to use:

      "TotalResults" => "20"
    

    But this is doing nothing.

  2. Is there anything that can be done about going to a higher page than 10?
    As:

     "ItemPage" => "20"
    

    Is limited to 10, is that just amazon stopping you from doing any more? or can you get around it?

Question about Price

Hey there,

This is a deceptively simple question - I have been trying to add the price, and have attempted that by changing my display function by adding:

        //if there is a price show it 
        if (isset($result['Medium']['Amount'] )) {
        echo "<b>". $result['Medium']['Amount']."</b>";
        }

This is my copy of the function - any ideas what I am missing?

''' private function getAmazonModule() {

if($this->prod['name'] !="") {
    //find what we are searching for - could also come from a GET if you wanted.
    $search = $this->man['name']." ".$this->prod['name'];
    $category = "PCHardware"; 

    //Amazon account settings
    define('AWS_API_KEY', 'AKIAILR632MKQJ6MTCWA');
    define('AWS_API_SECRET_KEY', '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');
    define('AWS_ASSOCIATE_ID', 'wholesdirect-20');

    require 'amazonecs.class.php';

    //declare the amazon ECS class
    $amazonEcs = new AmazonECS(AWS_API_KEY, AWS_API_SECRET_KEY, 'co.uk', AWS_ASSOCIATE_ID);

    //tell the amazon class that we want an array, not an object
    $amazonEcs->setReturnType(AmazonECS::RETURN_TYPE_ARRAY);

    //create the amazon object (array)
    $response = $amazonEcs->category($category)->responseGroup('Medium,Images,Offers')->search($search);


    //check that there are items in the response
    if (isset($response['Items']['Item']) ) {

        //loop through each item
        foreach ($response['Items']['Item'] as $result) {

            //check that there is a ASIN code - for some reason, some items are not
            //correctly listed. Im sure there is a reason for it, need to check.
            if (isset($result['ASIN'])) {

                //store the ASIN code in case we need it
                $asin = $result['ASIN'];

                //check that there is a URL. If not - no need to bother showing
                //this one as we only want linkable items
                if (isset($result['DetailPageURL'])) {

                    //set up a container for the details - this could be a DIV
                    echo '<table border="0" cellpadding="8"><tr><td>';

                    //create the URL link
                    echo '<a rel="nofollow" target="_Blank" href="'.$result['DetailPageURL'].'">';

                    // if there is a title - show it
                    if (isset($result['ItemAttributes']['Title'])) {
                        echo $result['ItemAttributes']['Title'] . "<br/>";
                    }
                    //if there is a small image - show it (Alternatively could be simplified to     <img border="0" src="image " alt="" /></a>  )
                    if (isset($result['SmallImage']['URL'] )) {
                        echo "<img style=' margin: 0px; margin-left: 10px; border: 1px solid black; max-height: 55px;' align='left' src='". $result['SmallImage']['URL'] ."'>";
                    }
                    //if there is a price show it 
                    if (isset($result['Medium']['Amount'] )) {
                        echo "<b>". $result['Medium']['Amount']."</b>";
                    }


                    //close the table etc
                    echo "</a></td></tr></table>";
                }
            }
        }
        }
    }       
    }

Amazon WSDL file not found - new location

Hi,

Attempting to run one of the sample files returns a fatal WSDL file not found error:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ecs.amazonaws.com/AWSECommerceService/2010-11-01/EN/AWSECommerceService.wsdl' : failed to load external entity "http://ecs.amazonaws.com/AWSECommerceService/2010-11-01/EN/AWSECommerceService.wsdl" in /var/www/developer/2011/amazonpas/amazon/lib/AmazonECS.class.php:208

This is because http://ecs.amazonaws.com/AWSECommerceService/2010-11-01/EN/AWSECommerceService.wsdl does not exist (note I've set the language to EN).

I did some research and found this WSDL:

http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl

So I updated the $webserviceUri property in AmazonECS.class.php to the new WSDL URL and everything worked great. However notice this doesn't take into account the locality (EN, DE, etc), so I'm not 100% sure this is the correct URL and instead wonder whether this is just the default EN URL.

Hope this helps,
Jason

Fatal Error on Line 229 AmazonECS.class.php

Hey --

I am trying to setup this product advertising API on my site, but keep getting an error:

Fatal error: Uncaught SoapFault exception: [aws:Client.InvalidClientTokenId] The AWS Access Key Id you provided does not exist in our records. in /home/kaybesee/public_html/amazon/lib/AmazonECS.class.php:229 Stack trace: #0 /home/kaybesee/public_html/amazon/lib/AmazonECS.class.php(229): SoapClient->__soapCall('ItemSearch', Array) #1 /home/kaybesee/public_html/amazon/lib/AmazonECS.class.php(115): AmazonECS->performSoapRequest('ItemSearch', Array) #2 /home/kaybesee/public_html/amazon/index.php(15): AmazonECS->search('PHP 5') #3 {main} thrown in /home/kaybesee/public_html/amazon/lib/AmazonECS.class.php on line 229

I have input my Associate Key, Secret Key, and Associate Tag in SampleSettings.php and in sampleItemSearch.php and I still get this error.

Can you help me out?

Missing Required Parameter Error

Hey Jan --

I am just experimenting with this code to build a web application for my site. I am not the most experienced coder, but have done some work with Wordpress and PHP in the past. I have edited the "sampleSettings.php" and placed it in the same directory as the file I am working on and also have "lib/AmazonECS.class.php" linked correctly with all the correct IDs, Tags, etc inputted.

When I use the following source code:

returnType(AmazonECS::RETURN_TYPE_ARRAY); // changing the category to DVD and the response to only images and looking for some matrix stuff. $response = $amazonEcs->category('DVD')->responseGroup('Images')->country('us')->search("Matrix Revolutions"); var_dump($response); ``` catch(Exception $e) { echo $e->getMessage(); } I get this result printed:
array(2) {
  ["OperationRequest"]=>
  array(4) {
    ["HTTPHeaders"]=>
    array(1) {
      ["Header"]=>
      array(2) {
        ["Name"]=>
        string(9) "UserAgent"
        ["Value"]=>
        string(14) "PHP-SOAP/5.3.1"
      }
    }
    ["RequestId"]=>
    string(36) "3cf95c06-31e7-432f-9bf5-2626e1c212c3"
    ["Arguments"]=>
    array(1) {
      ["Argument"]=>
      array(2) {
        ["Name"]=>
        string(7) "Service"
        ["Value"]=>
        string(19) "AWSECommerceService"
      }
    }
    ["RequestProcessingTime"]=>
    float(0.002351)
  }
  ["Items"]=>
  array(1) {
    ["Request"]=>
    array(3) {
      ["IsValid"]=>
      string(5) "False"
      ["ItemSearchRequest"]=>
      array(3) {
        ["Keywords"]=>
        string(18) "Matrix Revolutions"
        ["ResponseGroup"]=>
        string(6) "Images"
        ["SearchIndex"]=>
        string(3) "DVD"
      }
      ["Errors"]=>
      array(1) {
        ["Error"]=>
        array(2) {
          ["Code"]=>
          string(21) "AWS.MissingParameters"
          ["Message"]=>
          string(86) "Your request is missing required parameters. Required parameters include AssociateTag."
        }
      }
    }
  }
} 
It saids I am missing the required parameter "AssociateTag" but that setting is inputted in the settings file twice (Associate_Tag & Another_Associate_Tag). Can you help me out and maybe explain what I am doing wrong? I would really appreciate it. Also, I apologize for the wall of code.

Amazon ECS Class - The request must contain the parameter Signature Error

The Class was working perfectly until now. Now I get this error - "The request must contain the parameter Signature.".

Originally, I got an error "Request has expired. Timestamp date is 2012-02-19T02:02:28Z." I changed date on the buildSoapHeader function to 2011-08-01. Now I get the error "The request must contain the parameter Signature.".

The version of Amazon ECS Class is 1.3.3-Dev

Can you please help?

Parsing All ItemPages

How to parse through all the Pages we get for any category and responsegroup

e.g.
$response = $amazonEcs->category('All')->responseGroup('ItemAttributes, Large, Medium')->search(array('Brand' => ));

$total_pages = $response['Items']['TotalPages'];

let say we got 100 pages each having 10 records. Now I would like to know how parse through all the remaining 99 pages.

Inconsisten function optional parameters

The function optional parameters clears the other parameters set already. This is inconsistent because with your ways of returning the main object in all the funcions. (Sorry my bad english).

I think you should either return a new object and make this function static like a Fcatory function. Or just make this function override and concate the parameters passed.

Japanese, Italy,Chinese site

Hi,

the possibleLocation for Japan needs to be co.jp and it is possible to add "it" and "cn".

Thanks

bert2002

Amazon Associates

I have been trying to get a decent PHP Amazon search working for a very long time - this does the job perfectly (or at least it seems to - I havent worked out the parsing yet).

One obvious thing missing is the ability to add an associate ID - is this possible?

Issue with Endless

Thanks for putting this together. It's been awesome for an amateur coder like myself!

I am trying to pull stuff from endless.com (owned by Amazon). Amazon's documentation says ItemSearch on endless is possible via the optionalParameters ... MarketplaceDomain='endless.com', as long as SearchIndex='Marketplace'. Documentation: http://docs.amazonwebservices.com/AWSECommerceService/2011-08-01/DG/MarketplaceDomainParameter.html

I'm using your libraries, and keep getting this message: "Your request is missing a required parameter combination. When SearchIndex equals Marketplace, MarketplaceDomain must be present."

However, I print_r'd the params from your library ... and the array definitely is showing both SearchIndex='Marketplace', and MarketplaceDomain='www.endless.com' ... see below.

Array ( [AssociateTag] => xxxxxxxxxxxxxx-20 [AWSAccessKeyId] => AKIAICH56EGNLOAWZQEA [Request] => Array ( [Operation] => ItemSearch [Keywords] => B003JBINB0 [SearchIndex] => Marketplace [MarketplaceDomain] => www.endless.com [ResponseGroup] => Small ) )

And lastly, here is how I'm calling this:
$response = $client->category('Marketplace')->responseGroup('Small')->optionalParameters(array('MarketplaceDomain'=>'www.endless.com'))->search('B003JBINB0');

Your help would be GREATLY appreciated!

Proxy

The code doesn't work within my organization firewall. How do I specify the proxy to use?

ISBN

Sorry for the probably unbelievably easy question, but I can't figure out how to search for a book say using ISBN

Class 'SoapClient' not found in

Your code is awesome. It is working perfectly fine on local machine but on the server its give me
Fatal error: Class 'SoapClient' not found in.......

Can ya help me out with it

Best price field

How should I know which price field is the correct one to use? Is there a method for finding out which price Amazon are currently using? There are several in the results.

Changes in the Product Advertising API

As written on the Amazon forums, there are changes to how many requests can be made per second.
More information here:
https://affiliate-program.amazon.com/gp/advertising/api/detail/faq.html

What it means for this library:
When making requests for a product, if you make more than 1 per second (if you are not making any revenue), a SoapClient error exception occurs.
Something like this:
Fatal Error: Your account id XXXXX is been throttled.

To fix:
My personal fix was to sleep(1) after every lookup() call.

SSL connection required for SOAP authentication

Class returns randomly "SSL connection required for SOAP authentication", for the same exact query, aboyut 80% of times.

Have been doing some test and it seems it throw "SSL connection required for SOAP authentication" if i search the same thing more than once in a row. Is there some "Ask just once, cache, don't ask again" thing in the Amazon Web Service ?

The error isn't very descriptive... as i'm using https

The sort function

/**
 * Setting the sort to a specified value.
 * Allows to sort results, only if the cattegory selected is not 'ALL'
 *
 * @param string $parameter
 *
 * @return AmazonECS
 * 
 * @autor alacret
 * 
 */
public function sort($parameter) {
    if(!isset($this -> requestConfig['category']) or $this -> requestConfig['category'] == null ){
        throw new InvalidArgumentException('A category must be set before adding the sort parameter');
    }
    if($this -> requestConfig['category'] == "All" ){
        throw new InvalidArgumentException('The sort is not supported for the "All" category');
    }
    if($parameter == null or $parameter == "" ){
        throw new InvalidArgumentException(sprintf('%s : invalid value for sort parameter',$parameter));
    }

    $this -> responseConfig['optionalParameters'] = array_merge($this -> responseConfig['optionalParameters'], array("Sort" => $parameter));

    return $this;
}

Amazon search no longer working for me

I have just come back to doing some work on this project, and for some reason the Amazon product search is no longer working for me. I'm not sure when it stopped working as I very rarely check the site - but want to start developing it some more now...

Im trying:

require 'lib/AmazonECS.class.php';

//declare the amazong ECS class $amazonEcs = new AmazonECS(AWS_API_KEY, AWS_API_SECRET_KEY, 'UK', AWS_ASSOCIATE_ID);

//tell the amazon class that we want an array, not an object $amazonEcs->setReturnType(AmazonECS::RETURN_TYPE_ARRAY);

//create the amazon object (array) $response = $amazonEcs->category($category)->responseGroup('Small,Images,Offers')->search($search);

Currently, Im getting:

"We are unable to process your request at this time. Please retry your request."

As a response to running the API based search.

Any ideas as to why this might be?

Thanks,

Sam
ps. I really can not get formatting to work in these 'Issues' - apologies!

Demo site not working

Tried on a Firefox 8.0.1 Mac OS X 1.7.2 to search in the ES shop... nothing showed up

Uncaught SoapFault Exception

New API has been rolled out by Amazon today. All I get is "Service Unavailable":

Eg, using previous version of library (pre ES addition):

$amazonEcs = new AmazonECS(AWS_API_KEY, AWS_API_SECRET_KEY, 'com', 'blc-20');
$amazonEcs->returnType(AmazonECS::RETURN_TYPE_ARRAY);
$response = $amazonEcs->responseGroup('Large')->lookup('B000YQUMJE');

Document contents:
Service Unavailable

API Issue

Hey,

getting this message here:

"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details."

I am using my 'Access Key ID' and my 'Secret Key'. I am using php5.3.6/apache 2.2.19 on OS X Lion. Am I lacking a signing library?

Thanks so much,
Stan

CodeIgniter version

This is not really an issue - just a point of discussion and I couldn't find where to add it.

I have been using this class as-is for a while - and it has been great, but Im now converting my site to use the CodeIgniter framework.

I have managed to get the AmazonECS to work as a library - by changing about 6 lines of code. Im not sure I had done things in the best way - but happy to share these changes with anyone, should they want to go down the codeigniter route.

Thanks again for an amazing class.


Changes:

  1. Rename the AmazonECS.class.php to just AmazonECS.php
  2. Add the file to the application/libraries folder
  3. Change some code within the class as follows:

LINE 71 (construct)

public function __construct($params)
      {

      $accessKey    = $params[0];
      $secretKey    = $params[1];
      $country      = $params[2];
      $associateTag = $params[3];
      $category     = $params[4];

    if (empty($accessKey) || empty($secretKey))
    {
      throw new Exception('No Access Key or Secret Key has been set');
    }

    $this->requestConfig['accessKey']     = $accessKey;
    $this->requestConfig['secretKey']     = $secretKey;
    $this->requestConfig['associateTag']  = $associateTag;
    $this->requestConfig['category']      = $category;
    $this->country($country);
    }
  1. Call the library as follows:
$params = array(AWS_API_KEY, AWS_API_SECRET_KEY, 'co.uk', AWS_ASSOCIATE_ID, $category);

$this->load->library("AmazonECS", $params);

//tell the amazon class that we want an array, not an object
$this->amazonecs->setReturnType(AmazonECS::RETURN_TYPE_ARRAY);

$response = $this->amazonecs->search($search);

And thats it!

Problem fetching offers

Hi everybody,

first of all I want you to know, that this class is working nearly perfect. Well done!
I just have one question (bug?):

I like to get all offers of an item by EAN:

$response = $amazonEcs->responseGroup('OfferSummary,OfferListings,ItemAttributes')->optionalParameters(array('IdType' => 'EAN', 'Condition' => 'Used', 'MerchantId' => 'All', 'SearchIndex' => 'All'))->lookup($ean);

This query fetches me "TotalUsed = 3", but "TotalOffers = 1" and just lists me that one as OfferListing.

You can use '8590646400026' as EAN and co.uk as country code.

Thanks!

Any suggestion whats going wrong here?

Uncaught SoapFault exception

Hello,

Please help. when i try to search product with one amazon account (ECS_API_KEY, ECS_API_SECRET_KEY, ECS_ASSOCIATE_TAG) it's work.
but now i am tring it with another amazon account, but I get this error:

Fatal error: Uncaught SoapFault exception: [aws:Server.InternalError] We encountered an internal error. Please try again. in application\third_party\amazon_ecs\AmazonECS.class.php:212 Stack trace: #0 application\third_party\amazon_ecs\AmazonECS.class.php(212): SoapClient->__soapCall('BrowseNodeLooku...', Array) #1 application\third_party\amazon_ecs\AmazonECS.class.php(132): AmazonECS->performSoapRequest('BrowseNodeLooku...', Array) #2 application\controllers\digger.php(97): AmazonECS->browseNodeLookup('166835011') #3 [internal function]: Digger->process() #4 system\core\CodeIgniter.php(359): call_user_func_array(Array, Array) #5 index.php(202): require_once('C:\xampp\htdocs...') #6 {main} thrown in application\third_party\amazon_ecs\AmazonECS.class.php on line 212

Amazon now requires requests signed with associate tags, etc.

This library no longer works, as Amazon now requires requests signed with associate tags. Also, I think the old WSDL URL was deprecated.

Here are the required changes to the Amazon-ECS-PHP-Library to make it work again! :-)

I apologize for not knowing enough about git to submit the fixes properly...

First, go to the line where you invoke the request. Here is what I used to have:

$amazonEcs = new AmazonECS(AWS_API_KEY, AWS_API_SECRET_KEY, '');

Change that to this:

$amazonEcs = new AmazonECS(AWS_API_KEY, AWS_API_SECRET_KEY, '', AWS_ASSOCIATE_TAG);

Now, make sure that AWS_ASSOCIATE_TAG is set in your sampleSettings.php file (or wherever your settings are set).

I also went to lib/AmazonECS.class.php and changed this line:

protected $webserviceUri = 'http://ecs.amazonaws.com/AWSECommerceService/2010-11-01/%%COUNTRY%%/AWSECommerceService.wsdl';

to this:

protected $webserviceUri = 'http://ecs.amazonaws.com/AWSECommerceService/%%COUNTRY%%/AWSECommerceService.wsdl';

This fixed it!

Amazon ECS Class - The request must contain the parameter Signature Error

The Class was working perfectly until now. Now I get this error - "The request must contain the parameter Signature.".

Originally, I got an error "Request has expired. Timestamp date is 2012-02-19T02:02:28Z." I changed date on the buildSoapHeader function to 2011-08-01. Now I get the error "The request must contain the parameter Signature.".

Can you please help?

Question about search results

I have a weird problem and Im not sure if it is Amazon or something Im doing wrong. I have a feeling it is related to differences in Keywords and Item Names...

My site allows the user to search for products, which are then listed in a table. They can then click on that item to view the full details on Amazon, or they can choose to 'Add to list'.

Adding to list copies the title (and price, URL etc) to a new record in their wish-list.

Then automatically (or whenever a user clicks on that item) we search Amazon again using the Title field - but the item does not always show up, even though it is word for word copied. It seems to need to be more vague.

The reason I do this is that users are able to free-type items in to their wish-list, and clicking on it has the same effect as using the initial search button.

Any ideas?

If you want to try this out - www.isitonyourlist.com (reg required).

Uncaught SoapFault Exception

I'm getting very occasional isolated errors with the library, but i'm not able to see the exact cause of the error, as I only get this in apache2/error.log:

[Thu Oct 06 00:01:17 2011] [error] [client 127.0.0.1] PHP Fatal error: Uncaught SoapFault exception: [HTTP] Not Found in /var/www/booklending/lib/AmazonECS.class.php:229\nStack trace:\n#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://webserv...', 'http://soap.ama...', 1, 0)\n#1 /var/www/booklending/lib/AmazonECS.class.php(229): SoapClient->__soapCall('ItemLookup', Array)\n#2 /var/www/booklending/lib/AmazonECS.class.php(126): AmazonECS->performSoapRequest('ItemLookup', Array)\n#3 /var/www/booklending/inc/functions.inc.php(640): AmazonECS->lookup('B001DJU2D2')\n#4 /var/www/booklending/inc/scriptfunctions.inc.php(594): getBookInfo('B001DJU2D2')\n#5 /var/www/booklending/scripts/scripts.php(65): scrapeFreeSearchPages()\n#6 /var/www/booklending/index.php(348): include('/var/www/bookle...')\n#7 {main}\n thrown in /var/www/booklending/lib/AmazonECS.class.php on line 229

functions.inc.php line 640 calls the class method with this, as it does thousands of times each day with no problems:
$response = $amazonEcs->responseGroup('Large')->lookup($ASIN);

Searching for the same ASIN today with test code shows no problems. The code is running on AWS EC2 instances so I would expect it to be done to connection problems, though it's possible.

Is this likely to be an error with the class, or should I be looking at trying to catch the exception in the calling function and trying to figure out what's going wrong there?

Cheers,

Mark...

price issue

in responce i'm getting all responce.. but i'm unable to get the price...
i try as your demo is...
can u share your demo code.. here is mine..
i'm begginer so this is my logic.. all things are working fine except price

associateTag(AWS_ASSOCIATE_TAG); ``` // Want to have more Repsonsegroups? And Maybe you want to start with resultpage 2? $response = $amazonEcs->responseGroup('Small,Images')->optionalParameters(array('ItemPage' => $page))->category($category)->search($q); $response=json_encode($response); $data = json_decode($response); $final="["; for($i=0;$iItems->Item);$i++){ $title=$data->Items->Item[$i]->ItemAttributes->Title;//getting for limited charecters $final.='{"Title":"'.substr($title,0,22).'..", "url":"'.$data->Items->Item[$i]->DetailPageURL.'", "img":"'.$data->Items->Item[$i]->MediumImage->URL.'", "price":"'.$data->Items->Item[$i]->ItemAttributes->ListPrice->FormattedPrice.'" },'; } $final = substr($final, 0, -1); //trim last comma from string $final.="]"; echo $final; exit(); } catch(Exception $e) { echo $e->getMessage(); } ?>

AmazonECS.class.php 1.3.1 has a BOM

This is more an FYI.

After much weeping and gnashing of teeth, I figured out the AmazonECS.class.php currenlty being distributed has a byte-order-mark. This is fine and good... unless you don't realize it.

As soon as AmazonECS.class.php is parsed (via an include for instance), the BOM...



... is output. When you're creating a UTF-8 file, this is probably fine. When you're not, it breaks a lot of things.

I had no need of the BOM for what I was doing, so my solution was to create a AmazonECS.class.php for my use that doesn't have a BOM. Problem solved.

Amazon ECS record more than 10

i want to know how we get record more than 10 let 20 record on each call? is there any parameter have to pass to optionalParameters ??? please help me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.