No, you receive the handle to the file. You cannot rename the handle.
<? $filename = "http://www.latest.txt";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
echo $contents;
fclose ($fd); ?>
Should do the trick.. or something.. Modify it or whatever.
- Richard
"Jerry" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> im trying to fopen a url with something like to following :
>
> fopen("something.com/something.txt", r);
>
> this returns a "0"
>
> now when i rename the doc to something.htm, ill get the contents?
>
>
> Jerry Bonner
> Systems Analyst / Web Development
> ---------------------------------
> email: [[EMAIL PROTECTED]]
> icq : [34572902]
> phone: [507.344.1514]
> fax : [507.385.6017]
> ---------------------------------
> Prairie Lakes Internet
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]