Curl Error

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

    Curl Error

    Code:
    <?php
    echo "<?xml version=\"1.0\"?>";
    echo "<!doctype html public \"-//wapforum//dtd xhtml mobile 1.0//en\" \"http://www.wapforum.org/dtd/xhtml-mobile10.dtd\">";
    ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <?php
    echo "<head>";
    echo "<link rel=stylesheet href=style.css>";
    echo "<title>$here</title>
    </head>";
       
          $url = &#39;[url]http://wapapp.org/adds/transfer.php&#39;;[/url]
          $ch = curl_init(); // Initialize the cURL handler
          curl_setopt($ch, CURLOPT_URL, $url); // Set the URL   
          curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1) // Follow any redirects, just in case
          **curl_close($ch); // Close cURL handler**
      
          ?>
    </html>
    error =
    Parse error: syntax error, unexpected T_STRING in /home/waplance/public_html/index.php on line 17

    the error line is in **

    #2
    Lets see lmao

    Code:
    // create a new cURL resource
    $ch = curl_init();
    
    // set URL and other appropriate options
    curl_setopt($ch, CURLOPT_URL, "http://wapapp.org/adds/transfer.php");
    curl_setopt($ch, CURLOPT_HEADER, 0);
    
    // grab URL and pass it to the browser
    curl_exec($ch);
    
    // close cURL resource, and free up system resources
    curl_close($ch);
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      With timer lol

      Code:
      // Create a curl handle to a non-existing location
      $ch = curl_init(&#39;[url]http://wapapp.org/adds/transfer.php&#39;[/url]);
      
      // Execute
      curl_exec($ch);
      
      // Check if any error occured
      if(!curl_errno($ch))
      {
          $info = curl_getinfo($ch);
      
          echo &#39;Took &#39; . $info[&#39;total_time&#39;] . &#39; seconds to send a request to &#39; . $info[&#39;url&#39;];
      }
      
      // Close handle
      curl_close($ch);
      Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
      Visit: WapMasterz Coming Back Soon!
      _______
      SCRIPTS FOR SALE BY SUBZERO
      Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
      FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
      _______
      Info & Tips
      php.net
      w3schools.com

      Comment


        #4
        what you think sub

        Comment


          #5
          about curl ?
          Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
          Visit: WapMasterz Coming Back Soon!
          _______
          SCRIPTS FOR SALE BY SUBZERO
          Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
          FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
          _______
          Info & Tips
          php.net
          w3schools.com

          Comment


            #6
            Make sure you have the curl module loaded.

            Comment

            Working...
            X