By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,053 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,053 IT Pros & Developers. It's quick & easy.

open URl wich is generated by a script?

P: n/a
Hello,

I just started to get in touch with php
and use it as extension of
my Java Applets.....

How can I open a URL wich is of this kind:

http://www.host.com/?alotofdata

right now I use this script:
<?php
echo(" <W> ");
echo($key);
$file = fopen ($key, "r");
$contents = "";
while (!feof($file))
{
$contents .= fread($file, 8192);
}
fclose($file);
echo($contents);
?>

the first two lines are mere debugging help
the key ist set to the right URL
but it only receives
what it would get if I open the Address:

http://www.host.com/

is there a way to open the right connection?
(hopefully in an easy way)
maybe I searched for the wrong keywords but
google didn't bring anything

thanks a lot
Richard
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.