Jump to content


Photo

Https data input

php

  • Please log in to reply
4 replies to this topic

#1 Abhinav1994

Abhinav1994

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 15 February 2013 - 12:35 PM

$FBpage = file_get_contents('https://graph.facebo...access_token=EX');

this code works on my xampp but when i load this on live server of my website it gives me unable to open stream error

#2 requinix

requinix

    Transforming Moderator

  • Moderators
  • 6,135 posts
  • LocationWA

Posted 15 February 2013 - 12:53 PM

What is the error message exactly?

#3 Abhinav1994

Abhinav1994

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 16 February 2013 - 10:16 AM

the error displayed is-
file_get_contents(https://graph.facebo...access_token=EX): failed to open stream: Permission denied in..

#4 AyKay47

AyKay47

    Sick!

  • Members
  • PipPipPip
  • 3,287 posts
  • LocationEast Coast, U.S.
  • Age:24

Posted 16 February 2013 - 02:10 PM

Make sure that the allow_url_fopen option is enabled in the servers master php.ini file.
Hola!
I'm not going to hold your hand and write the code for you - ain't nobody got time for that!

#5 Abhinav1994

Abhinav1994

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 17 February 2013 - 12:36 AM

allow_url_fopen Is set ON in the php.ini on server




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com