Curl Error

Started on the old forum in February 2009 · view the original in the archive · old links redirect here

5 replies · 535 views · started 17 years ago · 1 min read

2 participants
looony Developer · 95 posts #1
<?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 = '[url]http://wapapp.org/adds/transfer.php';[/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 **

External image (may be gone)

if(isset($_SESSION['username'])) { print "everybody is a little loony inside"; } else { print"You should be shot"; }

subzero Super moderator Fellow · 3,954 posts #2

Lets see lmao

// 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... _______…

subzero Super moderator Fellow · 3,954 posts #3

With timer lol

// Create a curl handle to a non-existing location
$ch = curl_init('[url]http://wapapp.org/adds/transfer.php'[/url]);

// Execute
curl_exec($ch);

// Check if any error occured
if(!curl_errno($ch))
{
    $info = curl_getinfo($ch);

    echo 'Took ' . $info['total_time'] . ' seconds to send a request to ' . $info['url'];
}

// 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... _______…

looony Developer · 95 posts #4

what you think sub

External image (may be gone)

if(isset($_SESSION['username'])) { print "everybody is a little loony inside"; } else { print"You should be shot"; }

subzero Super moderator Fellow · 3,954 posts #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... _______…

Guest #6

Make sure you have the curl module loaded.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close