Pastetool #135

URL: , Paste another

<?php
	$url = 'http://www.google.com';
	$opts = array(
	'http'=>array(
	'method'=> 'GET',
	'header'=>
	"Accept-language: en\r\n" .
	"Cookie: foo=bar\r\n"
	)
	);

	$d = Array();
	$context = stream_context_create($opts);
	$f = fopen($url, "rb", false, $context);
	while($data = fread($f, 1024)) {
		$d[] = $data;
	}
	$content = join("\r\n", $d);
?>

Download code

This php code was pasted on January 6, 2010




Protected with advance Anti-SPAM techniques :)
Coded and designed by Fedmich
Follow us on Twitter