Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9147975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:08:26+00:00 2026-06-17T11:08:26+00:00

I’m working on a project which has two components: 1) One is the CodeIgniter

  • 0

I’m working on a project which has two components:

1) One is the CodeIgniter framework in which I’ll be building all of my custom code.

2) The other is Amazon’s PHP SDK libraries for MWS API.

The issue is, both my CodeIgniter code and Amazon’s SDK require their own autoload().

Amazon’s SDK is also further split up into 3-4 components, each of them has their own autoload function, so if you want to work with Products’ SDK, and then Reports SDK in the same session, you would run into the already defined autoload function.

For this reason, I’m thinking about setting up a web services system for communication between my own code and Amazon’s SDK files, even though they’re on the same server, but at least this way the naming conflicts can be avoided. I.e I’ll send a HTTP request to a file outside CodeIgniter, which will deal with Amazon’s SDK, and return a response in JSON or XML.

I don’t think namespaces are an option since I don’t want to go through each file/class in the SDK and add namespace statements.

My question is, are there any performance issues with this method that I should be aware of? And is there any way apart from namespaces that this method could be avoided?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:08:28+00:00Added an answer on June 17, 2026 at 11:08 am

    Just copy their autoloader functions to a separate file, rename them, and hook them up with spl_autoload_register thus:

    <?php
    function loadFrameworkOne($name) {
        // contents of __autoload from framework one.
    }
    function loadFrameworkTwo($name) {
        // contents of __autoload from framework two.
    }
    spl_autoload_register('loadFrameworkOne');
    spl_autoload_register('loadFrameworkTwo');
    

    This is quick, dirty and off the top of my head 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have an array which has BIG numbers and small numbers in it. I
I have a text area in my form which accepts all possible characters from
Let's say I'm outputting a post title and in our database, it's Hello Y&#8217;all
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.