Loading php/examples/Makefile.am +2 −1 Original line number Diff line number Diff line EXTRA_DIST = README getpageinvar.php simpleget.php simplepost.php EXTRA_DIST = README getpageinvar.php getbinarypageinvar.php simpleget.php \ simplepost.php php/examples/getpageinvar.php +6 −4 Original line number Diff line number Diff line # # The PHP curl module supports the received page to be returned in a variable # if told. # <?php // // The PHP curl module supports the received page to be returned in a variable // if told. // $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://www.myurl.com/"); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); $result=curl_exec ($ch); curl_close ($ch); ?> Loading
php/examples/Makefile.am +2 −1 Original line number Diff line number Diff line EXTRA_DIST = README getpageinvar.php simpleget.php simplepost.php EXTRA_DIST = README getpageinvar.php getbinarypageinvar.php simpleget.php \ simplepost.php
php/examples/getpageinvar.php +6 −4 Original line number Diff line number Diff line # # The PHP curl module supports the received page to be returned in a variable # if told. # <?php // // The PHP curl module supports the received page to be returned in a variable // if told. // $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://www.myurl.com/"); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); $result=curl_exec ($ch); curl_close ($ch); ?>