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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Scubanaked
Forum Newbie
Posts: 1
Joined: Fri Oct 25, 2002 3:28 pm

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

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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;
?>
Post Reply