Page 1 of 1

Help with API and PHP

Posted: Fri Sep 05, 2008 5:52 pm
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.

Re: Help with API and PHP

Posted: Sun Sep 07, 2008 12:44 am
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!"

Re: Help with API and PHP

Posted: Sun Sep 07, 2008 1:11 am
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").