curl_init() will not work

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Oxydude
Forum Newbie
Posts: 22
Joined: Sun Aug 01, 2004 9:57 am

curl_init() will not work

Post by Oxydude »

I am running PHP 4.3.8 and curl 7.8-1 on RedHat AS 2.1. I recompiled php with the --enable-curl option. The php.ini file has the ; removed before extension=curl.so. Everytime I try to use anything curl related, I seem to get the same error; Fatal error: Call to undefined function: curl_init() in /var/www/html/... on line xxx. Any ideas on where to look next? Also, curl does work from the linux prompt. Also, I did a find / -name=curl -print and I see that curl is at /tmp/php-4.3.8/ext/curl.so and /usr/bin/curl


Thanks!
Last edited by Oxydude on Fri Aug 06, 2004 9:08 pm, edited 1 time in total.
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Have you copied the libeay32.dll and sseay32.dll files to your PHP and system directory?
Oxydude
Forum Newbie
Posts: 22
Joined: Sun Aug 01, 2004 9:57 am

Post by Oxydude »

Would these files be on a linux port of PHP? I did a search (libeay* & sseay*) and could not find any matches on my hard drive.
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Hmm actually I was wrong there, I should have read more into your post. The dll files I specified are for win32 users only I think!
Oxydude
Forum Newbie
Posts: 22
Joined: Sun Aug 01, 2004 9:57 am

Post by Oxydude »

No problem, I appreciate the effort!
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Have you read the Curl Information on php.net?
Oxydude
Forum Newbie
Posts: 22
Joined: Sun Aug 01, 2004 9:57 am

Post by Oxydude »

Yes, I read it...maybe I will take another look.

Thanks!
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Yeah no problem, you should also have a google search :D I always find that it helps, hehe
Post Reply