Best Blackhat Forum

Full Version: [GET] phpSFP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
login nfo for demo
  • Admin – Username: admin / password: admin
  • User – Username: user / password: user
null or no?
after installing everything, trying hard shows me this error.! "The Facebook SDK v4 requires PHP version 5.4 or higher." Please Help!
@wilter_w, you have the answer right there... it needs PHP version 5.4 or higher. You should let your webhost know so that they can update their PHP install.
Excellent @dopeshow. That was reviewing. I'll open a support ticket to my hosting. Thank you Rep++
Hello,

I installed the script.. it's working however when I tried to enter the fb app id and app secret this error occurs:

Code:
A PHP Error was encountered

Severity: Warning

Message: file_get_contents(https://graph.facebook.com/XXXXXXXXXXXXXXXX?fields=roles&access_token=XXXXXXXXXXXXXX): failed to open stream: operation failed

Filename: models/settingss.php

Line Number: 34

Here's the code on Line 34:

PHP Code:
$return file_get_contents($url); 

Help please.. any PHP coders here?

The function where Line 34 is included:

PHP Code:
function custom_file_get_contents($url)
    {
        if(
ini_get('allow_url_fopen') == true)
        {
            
$return file_get_contents($url);
        }
            else
        {
            
$curl_handle=curl_init();
            
curl_setopt($curl_handle,CURLOPT_URL,$url);
            
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
            
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
            
$return curl_exec($curl_handle);
            
curl_close($curl_handle);
        }

        return 
$return;
    } 
Do you have "allow_url_fopen = on" in your php.ini file? I highly doubt that your PHP binary is compiled without curl support.

(10-02-2014 01:01 AM)Tambay Wrote: [ -> ]Hello,

I installed the script.. it's working however when I tried to enter the fb app id and app secret this error occurs:

Code:
A PHP Error was encountered

Severity: Warning

Message: file_get_contents(https://graph.facebook.com/XXXXXXXXXXXXXXXX?fields=roles&access_token=XXXXXXXXXXXXXX): failed to open stream: operation failed

Filename: models/settingss.php

Line Number: 34

Here's the code on Line 34:

PHP Code:
$return file_get_contents($url); 

Help please.. any PHP coders here?

The function where Line 34 is included:

PHP Code:
function custom_file_get_contents($url)
    {
        if(
ini_get('allow_url_fopen') == true)
        {
            
$return file_get_contents($url);
        }
            else
        {
            
$curl_handle=curl_init();
            
curl_setopt($curl_handle,CURLOPT_URL,$url);
            
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
            
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
            
$return curl_exec($curl_handle);
            
curl_close($curl_handle);
        }

        return 
$return;
    } 
it's definitely some kind of error related to your server config, because on my side it was perfectly working when I tested.
How to do that? i'm no php techie.. i installed it on a free hosting just to test.. and then this error came..

How to know if your server has curl.. i updated the php configuration on the cpanel..
(10-02-2014 02:26 AM)bambito Wrote: [ -> ]Do you have "allow_url_fopen = on" in your php.ini file? I highly doubt that your PHP binary is compiled without curl support.

(10-02-2014 01:01 AM)Tambay Wrote: [ -> ]Hello,

I installed the script.. it's working however when I tried to enter the fb app id and app secret this error occurs:

Code:
A PHP Error was encountered

Severity: Warning

Message: file_get_contents(https://graph.facebook.com/XXXXXXXXXXXXXXXX?fields=roles&access_token=XXXXXXXXXXXXXX): failed to open stream: operation failed

Filename: models/settingss.php

Line Number: 34

Here's the code on Line 34:

PHP Code:
$return file_get_contents($url); 

Help please.. any PHP coders here?

The function where Line 34 is included:

PHP Code:
function custom_file_get_contents($url)
    {
        if(
ini_get('allow_url_fopen') == true)
        {
            
$return file_get_contents($url);
        }
            else
        {
            
$curl_handle=curl_init();
            
curl_setopt($curl_handle,CURLOPT_URL,$url);
            
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
            
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
            
$return curl_exec($curl_handle);
            
curl_close($curl_handle);
        }

        return 
$return;
    } 
Pages: 1 2
Reference URL's