cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: trouble with multiple KEY/VALUE pairs in URL

From: shawn a <boris317_at_gmail.com>
Date: Tue, 20 Dec 2005 00:02:37 -0500

Are you trying to just dump the results to the screen? If your trying
to gather the results from the curl in a variable to parse in your
code you must set this opt.

                curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
                $xml = curl_exec($ch);

and catch the results in a variable. In this case $xml. When i
print($xml) i get this result. Though i DOOO have view source to see
the xml.
<layers>
<srtm30 value="95.0"/>
</layers>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-12-20