Web Analytics Made Easy -
StatCounter cURL WONT WORK - CodingForum

Announcement

Collapse
No announcement yet.

cURL WONT WORK

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • cURL WONT WORK

    I have been at this for days. I can not get even the simplest of cURL scripts to work. I am on hostmonster.com and they have curl enabled.

    curl information = libcurl/7.21.7 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

    The tech support employee from hostmosnter I spoke with said he uses curl on the server daily.

    Do I have to specify some sort of file path to the curl library? Mine would be /usr/bin/curl if this is the case.

    Please help I'm at my witts end and 3 days past a deadline.

    Thanks,

  • #2
    'Wont work' is such a vague term. Could you elaborate a bit more on what error you're getting?
    Useful function to retrieve difference in times
    The best PHP resource
    A good PHP FAQ
    PLEASE remember to wrap your code in [PHP] tags.
    PHP Code:
    // Replace this
    if(isset($_POST['submitButton']))
    // With this
    if(!empty($_POST))
    // Then check for values/forms. Some IE versions don't send the submit button 
    Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

    Comment


    • #3
      I am getting nothing, no html output when I print_r. Completely blank pages and no insertion into the remote database.

      Comment


      • #4
        And what does your PHP error log say? It could simply be an error further up your code. What is your code?

        Check your error log.
        Useful function to retrieve difference in times
        The best PHP resource
        A good PHP FAQ
        PLEASE remember to wrap your code in [PHP] tags.
        PHP Code:
        // Replace this
        if(isset($_POST['submitButton']))
        // With this
        if(!empty($_POST))
        // Then check for values/forms. Some IE versions don't send the submit button 
        Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

        Comment


        • #5
          So what is the code you're using? (posted inside [php] tags naturally)
          "Tango says double quotes with a single ( ' ) quote in the middle"
          '$Name says single quotes with a double ( " ) quote in the middle'
          "Tango says double quotes ( \" ) must escape a double quote"
          '$Name single quotes ( \' ) must escape a single quote'

          Comment


          • #6
            Hey guys, sorry I completely forgot I posted on this forum as well. Here is a link to another forum I posted in. I answered all these questions in correspondence with phphelpme. http://forums.devnetwork.net/viewtopic.php?f=1&t=131196

            Thank you all very much for your help

            Comment

            Working...
            X
            😀
            🥰
            🤢
            😎
            😡
            👍
            👎