13a5e16f35
standard PHP comment. Also wrap the code in <?php and ?> and finally add getbinarypageinvar.php to Makefile.am and README
13 lines
268 B
PHP
13 lines
268 B
PHP
<?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);
|
|
?>
|