|
-
Jan 10th, 2011, 02:39 AM
#1
Thread Starter
Junior Member
PHP Api Question(s)
Hello VBForums, i haven't been on here for awhile, like to say i hope everyone had a good xmas and new year...
My question is about PHP classes and API's.
So i'm looking into PHP classes and API's, i downloaded the facebook API file from the link given to github (http://github.com/facebook/php-sdk). After looking at the class/API file (facebook.php and https://github.com/facebook/php-sdk/...c/facebook.php) what i don't understand is, how it works server sided, i sort of understand some of the code but not all of it as i'm still in the process of learning PHP classes.
I don't understand, despite the sheer amount of tutorials i've read on classes/PHP API'S, how it works on the server side, because it isn't exposing any more code than what it wants, for example say if there is code in the class to check whether the developer/user is authorised, does it expose the database code to retrieve the user and information from the database in the code? because i don't see that as there is no database information whatsoever in the facebook.php file, also wouldn't that expose facebook/whatever site to major security risks exposing the database information?
Sorry if you don't understand this post, i'm not the best at explaining.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|