hi. i've been experimenting with curl and it has been working great. i
was
wondering though if anybody knows why an extra "0" value is being tacked

on to the end of the post.

here is the example:

<?
$test="i hope this worked";
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.mydomain.com/testing.php";);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "v1=$test&v2=20&v3=30");
curl_exec($ch);
curl_close($ch);

?>

and then the testing.php is:

<?

echo "$v1 $v2 $v3";


?>

the output, however is:

i hope this worked 20 30 0

how do i get rid of the extra 0? i'm not sure i need to for my purposes,
but i am
curious.

thanks.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to