|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-01 15:50 UTC] sterling@php.net
[2001-01-03 11:08 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 20:00:01 2025 UTC |
In this code the output has to be send back to $result, it works correctly except for the last character of the "localhost/curl/curl_feed.php" document, its not being outputted whils when using not the RETURNTRANSFER option the output is being output correctly: IE: localhost/curl/curl_feed.php outputs: WITHOUT : curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); this is a test WITH : curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); this is a tes *NoTice* The last character is missing. this can't be good :(( I would aprreciate it highly if someone could take a look at this :-) Kind regards, Emile Bosch <? dl("php_curl.dll"); $ch = curl_init ("localhost/curl/curl_feed.php"); curl_setopt($ch,CURLOPT_POST,1); curl_setopt($ch,CURLOPT_POSTFIELDS,"action=getUser"); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); echo $result = curl_exec ($ch); curl_close ($ch); ?>