PHP and cURL?

Discussion in 'PHP' started by carowan, Feb 16, 2006.

  1. #1
    Hey, I have installed XXAMP in my local machine which runs XP.
    Im currently running php 4.?.?, and it needs the cURL function to make queries to an outside site.

    For some reason in my phpinfo() cURL is no where to be found.

    Is it an option that just needs to be turned on?
    or
    How do I install?

    Thanks
     
    carowan, Feb 16, 2006 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    Assuming that you are running apache with php on windows.

    You will first need the curl dll for php. It should have been included with the php download, otherwise you will need to download the php_curl.dll.

    Make a curl folder on the same level as the php folder, and put the php_curl.dll in it.

    Then you should just need to uncomment the curl line in your php.ini file.
    extension=php_curl.dll

    Restart Apache and it should work.

    here is a tutorial I found that should also work.
    http://www.tonyspencer.com/mt/archives/2003/10/curl_with_php_a.htm
     
    jestep, Feb 16, 2006 IP
  3. carowan

    carowan Peon

    Messages:
    473
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sweet. thats what I needed.
    Thanks!
     
    carowan, Feb 16, 2006 IP
  4. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #4
    I have tried to download Xamp with Download Accelerator but it downloads only 10kb file, plz tell me how can download it with DAP?
     
    @SHFAQ, Mar 12, 2006 IP