update pague now
PHP 8.5.2 Released!

Examples

Table of Contens

add a note

User Contributed Notes 1 note

cmnajs at gmail dot com
17 years ago
Following code returns the curl output as a string.<?php
        // create curl ressource$ch= curl_init();

        // set urlcurl_setopt($ch, CURLOPT_URL, "example.com");//return the transfer as a stringcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);// $output contains the output string$output= curl_exec($ch);// close curl ressource to free up system ressourcescurl_close($ch);      
?>
To Top