curl - PHP guru

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qw12er
    Confirmed User
    • Apr 2004
    • 799

    #1

    curl - PHP guru

    how can I know if I have everything I need to use curl functions ?
    In the examples I saw I don't need to include anything ... but do I ?

    Right now curl_init(); causes an error.
    I have nothing to advertise ... yet.
  • SFF11
    Confirmed User
    • Sep 2005
    • 102

    #2
    Is it included in your PHP setup?

    try:
    Code:
    <?php
    phpinfo();
    ?>

    Comment

    • AcidMax
      Confirmed User
      • May 2002
      • 1827

      #3
      Just do a


      phpinfo();

      in your code and it will spit out all the config options. If it lists CURL on that page, then you should have it, if not then it needs to be compiled into PHP.
      Latest MMA news. http://www.mmawrapup.com

      Comment

      • qw12er
        Confirmed User
        • Apr 2004
        • 799

        #4
        Damn ! I don't have it ... thanks guys
        I have nothing to advertise ... yet.

        Comment

        • Fresh
          • Mar 2005
          • 4920

          #5
          curl
          CURL support enabled
          CURL Information libcurl/7.11.2 OpenSSL/0.9.7c zlib/1.1.4

          look for that in your phpinfo(); display

          if you see it, your all set... if not, if unix/linux, you have to compile php with-curl, or if on windows, uncomment the extension for curl.dll in the php.ini file


          Promote ONE Legal Tube Site, Collect Checks from 19 Sponsors

          Fresh Dave | Email: [email protected] | ICQ: 317160390


          Comment

          • naitirps
            Confirmed User
            • May 2004
            • 761

            #6
            if unix/linux, compile php with: --with-curl[=DIR]

            if windows, download the zip (not installer), in the ext folder you'll see all the dlls, find the curl one, slap it in ext, and modify php.ini to include it under [extensions]
            Programmer
            ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com

            Comment

            • qw12er
              Confirmed User
              • Apr 2004
              • 799

              #7
              What about libcurl ?

              Can't I just do something like include('libcurl.php'); or something like this ?
              I have nothing to advertise ... yet.

              Comment

              • psili
                Confirmed User
                • Apr 2003
                • 5526

                #8
                Originally posted by qw12er
                What about libcurl ?

                Can't I just do something like include('libcurl.php'); or something like this ?
                I didn't research the answer, and I didn't know something like "libcurl.php" existed, but I'd guess if you compile curl with PHP the performance increase over some external, additional layer like a "libcurl.php" would be huge.
                Your post count means nothing.

                Comment

                Working...