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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -