/**************************
* GOLD SEEKER
* Data Extraction Tool
**************************/
== FAQ ========================================================================
Woohoo! I got twice the same question! Now I can have a real FAQ!
== 1 - I get the error "Fatal error: Call to undefined function: curl_init()"
when trying to run the samples
Your php installation doesn't have libcurl. I use curl to
retrieve files via http://.
You should install curl, alas I have no clue about how to do that.
Under win32 you could install easyPhp 1.7 which comes with libcurl (you just
have to enable the extention php_curl).
How to add curl to an existing php installation:
------------------------------------------------
(many thanks to Chantu Of ChantuDotCom for this tutorial)
Windows user normally downloads the installer and install PHP using it.
Installer DO NOT come with external extensions.
To properly support cURL Windows users need to download the
Full PHP (Bigger in size). The downloads are at
http://in.php.net/downloads.php
Once FULL PHP is downloaded, they can copy the DLLs in proper system folder
and edit php.ini file to enable curl extension support.
(This is how i fixed my PHP installation curl_init() problem. Long back I
installed PHP through installer
My installation did not have any extensions. I then downloaded complete PHP
and extracted it.
From DLL folder of PHP i copied all dlls to winnt\system32 folder. Then i
uncommented
extension=php_curl.dll in php.ini file to support cURL extensions)
curl_init() error is mostly due to missing extenions in PHP has nothing to
do with cURL development website.
A more detailed solution is explained at
http://www.zend.com/zend/tut/tutorial-thome3.php
Installing cURL (functions explained on
http://in.php.net/manual/en/ref.curl.php )
From PHP version 4.2.3 on, you need a cURL version of at least 7.9.0. From
PHP version 4.3.0 on, you need a cURL version of at least 7.9.8.
Windows:
As with any PHP extension in Windows, you will need the PHP distribution
that includes external extensions. Once PHP is installed, you will need to
copy the files php4ts.dll, ssleay32.dll, php_curl.dll, msvcrt.dll from the
'DLLs' folder to your Windows PATH, i.e.:
c:\windows\system for Windows 9x/Me
c:\winnt\system32 for Windows NT/2000
c:\windows\system32 for Windows XP
cURL can then be enabled by uncommenting the line 'extension=php_curl.dll'
in the php.ini file. Alternatively you can load the module dynamically in
your script using:
<?php
dl("php_curl.dll");
?>
Unix:
Your local mirror for downloading cURL can be found at http://curl.haxx.se.
Precompiled binaries are also available for a wide range of operating
systems.
Because cURL relies on the openssl library for SSL connections, openssl must
be installed first. If openssl is not installed, SSL support will be omitted
from the cURL build. After installing cURL (./configure, make, make
install), PHP must be recompiled to include cURL support (--with-curl).
If cURL support is enabled, the phpinfo() function will display it in its
output.
More explanation for unix and other OS is there on same web page
located at http://www.zend.com/zend/tut/tutorial-thome3.php.
If you can't manage to install cURL, you can:
- comment out every line containing "curl" and work only with local files.
- or harass me until I write an alternate file downloading method.
If you have another question, feel free to post it at
https://sourceforge.net/forum/forum.php?forum_id=353963
You could also submit a bug here:
https://sourceforge.net/tracker/?group_id=102434&atid=632352
Or a feature request:
https://sourceforge.net/tracker/?group_id=102434&atid=632355
Or a support request:
https://sourceforge.net/tracker/?group_id=102434&atid=632353
If you don't like forums & tracker systems, you can mail it at
quentin.bouvart@gwd.fr.
And if you find GoldSeeker useful, you could even donate here:
https://sourceforge.net/project/project_donations.php?group_id=102434
Come on! I'll only use this money for GoldSeeker-related
stuff, like computer hardware and beers.
|