php - File_get_contents not working? -


i using cakephp. trying data facebook using file_get_contents. warning.

warning (2): file_get_contents() [function.file-get-contents]: url file-access disabled in server configuration warning (2): file_get_contents(https://graph.facebook.com/xxxxxxx/?access_token=111978178xxxxxx|2.lg65a3c0atficnsfcf7rog__.3600.12799xxxx-1000

is there way data?

i appreciate help.

thanks.

this configuration issue on server.

in php.ini have

allow_url_fopen = off 

if want allow this, set on. aware though reason it's turned off default it's more secure.

a common alternative use curl instead; might want check if hosting environment offers that.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -