Forum

problem on API integration
This thread is public.
avatar
bizaro


Hello I get this error when I place online the example that we can download (for integration of API): Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/sites/easternmob.com/public_html/pay/Zaypay.class.php on line 397

I changed in the config.php the id and the api key from the price settings, but I get this error.

I know that is something about the safemode of the apache/php server How can I solve it? With some codes in the _htacces file?

I tried to disable safe_mode from the folder, but ig get the same error

Thanks

avatar
bastiaan


Hi Bizaro,

Good catch. It’s usualy impossible to override safe_mode in any way (allowing people to defy safe_mode or the basedir-restriction doesn’t really make sense I guess). So you can safely state it’s a shortcoming of our class. The CURLOPT_FOLLOWLOCATION can easily be mimicked (by just manually parsing the Location:-header and requesting that URL by hand). That way it would play nice with safe_mode / openbasedir.

We have a developer on this as I write you this reply. With any luck we’ll have it online for you today. Without any luck it will become available after the weekend. As soon as it becomes availalbe I’ll post in this thread, so you’ll be notified by email.

Thanks for the feedback.

Best regards,

Bastiaan

avatar
bizaro


I’ll wait then for the release Thank you for your great suport!

avatar
bastiaan


Hi!

If you now visit the API Integration guide you can download a new version the php-example or just the class. :)

Please don’t hesitate to ask anything else.

Best regards,

Bastiaan