Re: curl session

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Gayatri,

On Fri, Jul 07, 2006 at 09:18:51AM -0000, Gayatri wrote:
> [...]
> CURL support enabled
> CURL Information libcurl/7.14.0 OpenSSL/0.9.8a zlib/1.2.3
> 
> but whenever I try the flwg source, it returns a blank page in the
> browser
> am i missing any chgs in php.ini or httpd.conf?

There's something else missing ...

> <?php
> // create a new CURL resource
> $ch = curl_init();
> 
> // set URL and other appropriate options
> curl_setopt($ch, CURLOPT_URL, "http://www.example.com/";);
> curl_setopt($ch, CURLOPT_HEADER, false);
> 
> // grab URL and pass it to the browser
> curl_exec($ch);

echo curl_exec($ch);

// or put it into a variable
$output = curl_exec($ch);

> 
> // close CURL resource, and free up system resources
> curl_close($ch);

// and finally
echo $output;

> ?>

HTH

Martin


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux