Page 1 of 1

fopen remote url with arguments ie:*.php?item=1

Posted: Fri Oct 25, 2002 3:28 pm
by Scubanaked
Hi, Scoured my books, and searched the forum, but can't figure this out. Appreciate it. : ) !!


$url="http://www.scubanaked.com/checklist_cus ... ogin=brian"]
$webfile = fopen("$url", "r")

Errors because of the arguments

in a nutshell :lol: How can I gather page contents from a php generated html?

Brian Kempe
info@scubanaked.com

Posted: Sat Oct 26, 2002 3:16 am
by volka

Code: Select all

<?php
$url='http://www.scubanaked.com/checklist_custom.php?login=brian';
$webfile = fopen($url, 'r');
while($part = fread($webfile, 1024))
	echo $part;
?>