This function should be called after you initialize a CURL
session and all the options for the session are set. Its purpose
is simply to execute the predefined CURL session (given by the
ch).
Example 1.
Initializing a new CURL session and fetching a webpage
<?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, 0);
// grab URL and pass it to the browser curl_exec($ch);
// close curl resource, and free up system resources curl_close($ch); ?>
Note:
If you want to have the result returned instead of it being printed to the
browser directly, use the CURLOPT_RETURNTRANSFER option of
curl_setopt().
Php curl exec Function syntax tag
curl exec php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php curl exec syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.