Storing a FaceBook profil photo in a Database |
[eluser]DocFunky![/eluser]
Hello World ! I got I little problem implementing a Facebook profil photo into my Database: Okay so here is the picture I would like to store : <img src="https://graph.facebook.com/<?php echo $fb_data['uid']; ?>/picture" alt="" class="pic" /> [/code] as you can see, the source is external to my website. So, I first wanted to store it in a variable this way: Code: $mon_image = base64_encode ( file_get_contents ( 'https://graph.facebook.com/<?php echo $fb_data[\'uid\']; ?>/picture' )); that the "file_get_contents" function doesn't support the https. Another way to perform is the wrappers, and as we can see here : http://fr.php.net/manual/en/wrappers.http.php it use a GET method to do so : "Allows read-only access to files/resources via HTTP 1.0, using the HTTP GET method." Yet, I know that "The security filtering function is called automatically when a new controller is invoked. It does the following: Destroys the global GET array. Since CodeIgniter does not utilize GET strings, there is no reason to allow it." ( http://ellislab.com/codeigniter/user-gui...input.html) So, is that possible for me to store this image ? If yes, how could i do so ? Thanks for your help. |
Welcome Guest, Not a member yet? Register Sign In |