Ok so I just got CURL installed on my server. I used the following code and got an error that's shown below.

$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, "https://certification.merchantaccountplace.net/gateway/transact.dll");

Fatal error: Call to undefined function: curl_init() in /home/site/public_html/net/file.php on line 280

Why would I get this error? I have PHP 4.1.2-7.3.6 and CURL 7.9.5-2

    Did you tell PHP about cURL's existence? (in Windows, uncomment the dll extension, in Unix, recompile PHP --with-curl)

      Where would the files be that I need to edit so PHP knows of CURL? I did not install personally but I can still take a look.

      We used WHM 5.5.1, Redhat 7.3, WHM X, and the RPM installer to get curl on in the first place. Would this automatically let PHP know?

        And oh we are on Linux so I should still have --with-curl somewhere? in what file?

          8 months later

          Hi,

          I'm running a Novell server (6.0), should be similar to windows at least for the dll

          Did you tell PHP about cURL's existence? (in Windows, uncomment the dll extension, in Unix, recompile PHP --with-curl)

          Where is this dll located?

          Thanks mucho,
          Sam

            Originally posted by Shawazi
            And oh we are on Linux so I should still have --with-curl somewhere? in what file?

            Okay, read the installation section on [man]cURL[/man] and the appropriate PHP instructions for installing PHP on your OS and server (http://www.php.net/manual/en/installation.php http://www.php.net/manual/en/install.linux.php http://www.php.net/manual/en/install.unix.php)

            Originally posted by sfullman
            Where is this dll located?

            Same place as all the other extension DLLs (see http://www.php.net/manual/en/install.windows.php)

              Write a Reply...