Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

`curl_init` kills Pepper execution

mitchoyoshitaka
Pepper Developer
Posted on Jan 14, '08 at 11:53 pm

I’m trying to use curl within onDisplay() to get site-external stats, but execution of onDisplay() halts after curl_init() or, more specifically, when I try to assign the resource to a variable:

$curly = curl_init();

In fact, if I just have curl_init() there, it continues to execute, but that makes it pretty useless. My php install has libcurl and thus $curly = curl_init(); works fine outside of Mint… any ideas as to why this isn’t working in the Pepper?

mitcho

Shaun Inman
Mint/Pepper Developer
Posted on Jan 15, '08 at 09:19 am

Try disabling “Stagger Pane Loading” in your Preferences and adding ?errors to your Mint url. PHP is likely throwing an error that you’re just not seeing (also try viewing source on the halted output).

Till
Pepper Developer
Posted on Jan 15, '08 at 11:17 am

Maybe your PHP version wasn’t compiled with cURL.

mitchoyoshitaka
Pepper Developer
Posted on Jan 15, '08 at 10:33 pm

Ahah! There was just some weird character in front of curl_init… I just converted to ASCII in BBEdit and that did the trick.

Thanks Shaun!

You must be logged in to reply. Login above or create an account