How to use CUrl

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sundar22in@gmail.com

    How to use CUrl

    Hi,
    How to use CUrl??? What are the libraries to be included using the
    require_once command??
    I wanted to implement Range Header and get a part of file thru HTTP. So
    found that curl_setopt() method will be useful. Is curl comes with the
    new php installation for windows 2000?? If not how to install it?? Is
    it easy to insatll?

    Kindly help

    -Sundar

  • Andy Hassall

    #2
    Re: How to use CUrl

    On 6 Sep 2006 06:46:27 -0700, sundar22in@gmai l.com wrote:
    >How to use CUrl???

    >What are the libraries to be included using the
    >require_once command??
    None. It's an extension, so you need to load the extension in php.ini or
    compile it into PHP itself.
    >I wanted to implement Range Header and get a part of file thru HTTP. So
    >found that curl_setopt() method will be useful. Is curl comes with the
    >new php installation for windows 2000?? If not how to install it?? Is
    >it easy to insatll?
    Yes. Open php.ini. Uncomment (remove the leading semicolon) the
    "extension=php_ curl.dll" line. Restart your webserver. cURL functions should
    then be available.

    But see the "Note to Win32 Users" in the manual (the first link in this
    message, above).

    --
    Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

    Comment

    • sundar22in@gmail.com

      #3
      Re: How to use CUrl

      Yes. Open php.ini. Uncomment (remove the leading semicolon) the
      "extension=php_ curl.dll" line. Restart your webserver. cURL functions should
      then be available.
      I removed the comment (i.e semicolon ) for "extension=php_ curl.dll"
      line in the php.ini. After making this change i restarted the Apache
      webserver. But It said "Unable to load dynamic library
      /../php/extensions/php_curl.dll" - The specified module could not be
      found. Does this mean cURL is not installed ???
      But see the "Note to Win32 Users" in the manual (the first link in this
      message, above).
      Yes, I made sure libeay32.dll,ss leay32.dll are included in the PATH
      variable. Even then im getting the same error message which is
      specified above!

      Thanks

      -Sundar

      Comment

      • Anonymous

        #4
        Re: How to use CUrl

        sundar22in@gmai l.com wrote:
        >
        Yes. Open php.ini. Uncomment (remove the leading semicolon) the
        "extension=php_ curl.dll" line. Restart your webserver. cURL functions should
        then be available.
        >
        I removed the comment (i.e semicolon ) for "extension=php_ curl.dll"
        line in the php.ini. After making this change i restarted the Apache
        webserver. But It said "Unable to load dynamic library
        /../php/extensions/php_curl.dll" - The specified module could not be
        found. Does this mean cURL is not installed ???
        >
        Are you using the installer version? From the PHP page:

        PHP 4.4.4 zip package [8,090Kb] - 17 Aug 2006
        (CGI binary plus server API versions for Apache, Apache2 (experimental),
        ISAPI, NSAPI, Servlet and Pi3Web. MySQL support built-in, many
        extensions included, packaged as zip)
        md5: 3ff3f58a2f573c8 0f34f2b670d7ac8 73

        PHP 4.4.4 installer [1,085Kb] - 17 Aug 2006
        (CGI only, MySQL support built-in, packaged as Windows installer to
        install and configure PHP, and automatically configure IIS, PWS and
        Xitami, with manual configuration for other servers. N.B. no external
        extensions included)
        md5: e5db53efb3e0fed 5407fc7c71cf0b4 36

        If the answer is yes, the sentence 'no external extensions included'
        should explain everything. Get the archive.

        Bye!

        Comment

        • sundar22in@gmail.com

          #5
          Re: How to use CUrl

          I wanted to implement Range Header and get a part of file thru HTTP. So
          found that curl_setopt() method will be useful.
          I was able to install php with cURL extensions. thanks for helping me
          out. i wanted to specify the range of file using curl_setopt(). How do
          we do that?.
          Basically i wanted to get a par of file instead of the whole file.

          Thanks in advance

          -Sundar

          Comment

          Working...