Welcome to the Browser-Base Game Zone forums!
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, adress); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $content=curl_exec($ch); curl_close($ch);?>
function vWritePageToFile( $sHTMLpage, $sTxtfile ) { $sh = curl_init( $sHTMLpage ); $hFile = FOpen( $sTxtfile, 'w' ); curl_setopt( $sh, CURLOPT_FILE, $hFile ); curl_setopt( $sh, CURLOPT_HEADER, 0 ); curl_exec ( $sh ); $sAverageSpeedDownload = curl_getInfo( $sh, CURLINFO_SPEED_DOWNLOAD ); $sAverageSpeedUpload = curl_getInfo( $sh, CURLINFO_SPEED_UPLOAD ); echo '<pre>'; echo 'Average speed download == ' . $sAverageSpeedDownload . '<br>'; echo 'Average Speed upload == ' . $sAverageSpeedUpload . '<br>'; echo '<br>'; $aCURLinfo = curl_getInfo( $sh ); print_r( $aCURLinfo ); echo '</pre>'; curl_close( $sh ); FClose ( $hFile ); echo '(<b>See the file "'.$sTxtfile.'" in the same path of the hosting'. ' to where this script PHP</b>).<br>'; }
$strmain="abcdefghij"; $strp1="cde"; $strp2="ij"; $req=str_example($strmain,$strp1,$strp2); echo $req;
fgh