curl-and-php
Re[2]: Installation verification
Date: Sat, 9 Jun 2001 12:26:11 +0300
Hello Richard,
Saturday, June 09, 2001, 12:16:00 PM, you wrote:
RF> Just looked.
RF> The uncommenting is only for win32.
RF> Richard.
To use PHP's CURL support you must also compile PHP --with-curl[=DIR]
where DIR is the location of the directory containing the lib and include directories.
In the "include" directory there should be a folder named "curl" which should
contain the easy.h and curl.h files.
There should be a file named "libcurl.a" located in the "lib" directory.
>> Hello Richard,
>>
>> Saturday, June 09, 2001, 11:06:55 AM, you wrote:
>>
>> RF> G'Day,
>>
>> RF> This is just a quick email as I can't search the archive as it is
RF> offline
>> RF> for maint.
>>
>> RF> I have installed the latest cURL and it works from command line.
>>
>> RF> I integrated it into and compile PHP with cURL and SSL and all the
RF> other
>> RF> stuff is says to on the web page.
>>
>> RF> I compiled PHP first of as a stand alone module so I could run it from
RF> the
>> RF> command line. It worked. I could pass in a file with the simple page
RF> get
>> RF> thing and I got the results ok.
>>
>> RF> Now I compiled PHP as an apache module and compiled that into apache
RF> SSL.
>> RF> No drama's no questions asked, just like the last 1000
RF> apache/mysql/php
>> RF> installs I have done.
>>
>> RF> Now calling phpinfo() works as do other basic things like "Hello
RF> World!".
>>
>> RF> However when I try and run a basic web site cURL fetch - I get this
RF> error...
>>
>> RF> *************
>>
>> RF> Fatal error: Call to undefined function: curl_init() in
>> RF> /usr/local/apache/htdocs/test2.php on line 3
>>
>> RF> *************
>>
>> If you were using it under Windows I would help you. I have had the
>> same promlem.
>> But may be it will help you. (I explain everything for WIN32)
>> Change path to the extensions modules from "./" into "extensions/"
>> You have to remove comments in php.ini file from php_curl.dll
>> Copy ssl libraries into PHP directory, rename or copy libssl32.dll
>> into ssleay32.dll.
>> Now it must work !!!
>>
>> May be working under UNIX you have to put right paths.
>>
>>
>> RF> What is going on? From all the configure and make output cURL was
RF> found and
>> RF> was put in. Even PHP info has a cURL section!
>>
>> RF> How do I validate that my install is OK and why would my test script
RF> not
>> RF> work, but it did for command line curl and command line PHP.
>>
>> RF> System is.
>>
>> RF> RH 6.2 - no patches or anything (this is a internal dev server).
>> RF> apache 1.3.20
>> RF> Latest mod_ssl
>> RF> Latest openssl
>> RF> Latest curl.
>> RF> PHP 4.0.5
>> RF> MySQL 3.23 stable.
>>
>> RF> Many Thanks.
>>
>> RF> Richard Ford.
>> RF> IS Consultant, Cubok PTY LTD
>> RF> richard_at_cubok.com www.cubok.com
>> RF> richard_at_millpost.com.au www.millpost.com.au
>>
>>
>> RF> _______________________________________________
>> RF> Curl-and-php mailing list
>> RF> Curl-and-php_at_lists.sourceforge.net
>> RF> http://lists.sourceforge.net/lists/listinfo/curl-and-php
>>
>>
>>
>> --
>> Best regards,
>> YAHOO!!! mailto:vladkalmik_at_yahoo.com
>>
>>
>>
>> _________________________________________________________
>> Do You Yahoo!?
>> Get your free @yahoo.com address at http://mail.yahoo.com
>>
>>
>> _______________________________________________
>> Curl-and-php mailing list
>> Curl-and-php_at_lists.sourceforge.net
>> http://lists.sourceforge.net/lists/listinfo/curl-and-php
>>
RF> _______________________________________________
RF> Curl-and-php mailing list
RF> Curl-and-php_at_lists.sourceforge.net
RF> http://lists.sourceforge.net/lists/listinfo/curl-and-php
-- Best regards, Vladimir mailto:vladkalmik_at_yahoo.com _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ Curl-and-php mailing list Curl-and-php_at_lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/curl-and-phpReceived on 2001-06-09