Help with API and PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
randallk
Forum Newbie
Posts: 2
Joined: Fri Sep 05, 2008 5:44 pm

Help with API and PHP

Post by randallk »

I recently have had to do some work with some PHP code, and I'm looking to get some information about a few things.

Every page that accesses the database has code that looks something like the following:

Code: Select all

$xml = "
        <api_calls version=\"4.1.0\">
            <dbconnect database=\"" [CODE DELETED] "\">
                <command name=\" [CODE DELETED] "\" ";
 
Then always something like this:

$api->execute_api();

What is this? I've done work with mySQL before, but nothing like this. Where can I go to learn more? I don't even know what it is called. I've searched google for "PHP API", but I'm not getting much that seems relevant. I know this seems like a dumb question... but I just need a starting point, then I can go learn!

Thanks in advance for any help you can provide.
randallk
Forum Newbie
Posts: 2
Joined: Fri Sep 05, 2008 5:44 pm

Re: Help with API and PHP

Post by randallk »

I hate to reply to my own question... but I'm really at my wits ends here. Any help anyone could provide would be so very appreciated!

Even something like "You should really be posting this in the XYZ fourm!"
Cut
Forum Commoner
Posts: 39
Joined: Sat Aug 23, 2008 8:01 pm

Re: Help with API and PHP

Post by Cut »

$api->execute_api();
This is a reference to the function execute_api(), which is created in a class (http://us.php.net/oop). It's nothing built into php. If you want to find out what it does, just search for "function execute_api" in your files. (If you use Notepad++ you can open up a bunch of tabs and then ctrl + F "find in all opened documents").
Post Reply