|
Posted by J.O. Aho on 10/13/58 11:31
Gary wrote:
> In fact would this work???? I get the impression that the / just before
> the quote on the first line is necessary.
You need to tell that it's something else than the local filesystem, so you
need the http:// ftp://, everything else is considered as to bing on the local
filesystem.
> $url = "www.MySite.com/OnePageinParticular.php/"
php will look for the directory named www.MySite.com and there try to find
another directory named OnePageinParticular.php.
I think you want to access the OnePageinParticular.php on the host
www.MySite.com, then it's
$url = "http://www.MySite.com/OnePageinParticular.php"
> $fp = fopen($url, "r") or die("OPEN");
> while (! feof($fp))
> {
> fread($fp, 1024) or die("READ");
> }
> fclose($fp) or die("CLOSE");
For more info on fopen and user comments, see
http://www.php.net/manual/en/function.fopen.php
//Aho
Navigation:
[Reply to this message]
|