scottmac / opengraph

Helper class for accessing the OpenGraph Protocol
463 stars 151 forks source link

cURL followlocation issue #40

Open feelsickened opened 8 years ago

feelsickened commented 8 years ago

Hi,

I've just moved to a cloud hosting environment, and at this time don't believe I have direct access to my php.ini for modifications.

Since moving; I am getting the following PHP warning: Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /var/../OpenGraph.php on line 56

Has anyone else encountered this, and or have a work around or solution? UPDATE: This issue is primary due to settings on the server-side that I still can't resolve, and will attempt to use the workaround of just commenting out: curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);

Thanks in advance for any assistance, and to all those that contribute to this great open graph script.