Forum Moderators: coopster

Message Too Old, No Replies

Getting CURL to work on win

What else can I check, and can I log?

         

killroy

5:24 pm on Nov 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I get the ususal "Call to undefined function: curl_init()"

Not I have the DLLs in teh right place, PHP works, I set the extention line in php.ini, and still it doesn't work.

What else can I cehck, and is there some way to log PHP module startup messages, so perhaps I can see where it goes wrong?

Thanks

SN

coopster

5:29 pm on Nov 29, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Did you use the installer? Or manual install?

brotherhood of LAN

5:50 pm on Nov 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



An alternative is to use it from the command line.

$pathtocurl = "C:/curl/curl";
exec("$pathtocurl -I [webmasterworld.com",$output);...]
print_r($output);

killroy

2:18 am on Nov 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I did a manual "minimal" install, so I could just upload everything to the server and have it work there too..

I need it to get some scripts working provided by a third party, so I don't really want to muck around with the mecahnism of how it's called... i. e. what' the manual way to "inject" curl into an existing PHP installation on win?

SN

coopster

12:55 pm on Dec 1, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The User Contributed notes on CURL [php.net] have a few horror stories that you may want to review, particularly how some folks have copied the binaries over from a *manual install* download to overwrite the dlls that the installer dropped in. And actually, it sounds as if the dlls may be different between installer and manual install modes, which strikes me as odd. Anyway, it may be easier to reinstall (manually), but review the User Contributed notes for a few options. Oh yeah, the Zend link found there has a brief tutorial that isn't too bad.

killroy

1:12 pm on Dec 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have read and tried all those..

Why don't folks jsut take the minimal files and dump em in a zip? I mean, the install of apache, php mysql and all of em elseones, install at LEAST about 1000% in size and file count form what is needed to run the stuff... why? oh why?, I ask...

erm, sorry about that. Anyways, once again my cases seems to be different form everybody elses...

I'Ve gotten as far as gettign apache to start and immediately terminate without any for mof error response, either in the log or stdout, despite it obviously failing or crashing in some form... yey me... now I jsut need to master the skill of "making-stuff-work" as well as my skill of "breaking-stuff", then I'll be unstoppable...

SN