On Friday 06 April 2001 03:12, you wrote:
> Technically yes.
>
> In an HTTP session, the server returns a header "Content-length" which
> lists the more or less exact size of the file being sent.
Caution: The server is not required to send this header - PHP for example
doesn't do it automaticall
"Steve Werby" <[EMAIL PROTECTED]> wrote:
> acutally i found my problem, what was happening was that script1 that was
> on the server that file resides had that file open at the same time that
> scirpt2 was trying to open via http, when i change that files name, the
> permissions changed, and scrip
Technically yes.
In an HTTP session, the server returns a header "Content-length" which lists
the more or less exact size of the file being sent.
But there isn't really an easy way of reading HTTP headers in php, yet. I
really wish there were.
You can use fsockopen to make your own http session
acutally i found my problem, what was happening was that script1 that was
on the server that file resides had that file open at the same time that
scirpt2 was trying to open via http, when i change that files name, the
permissions changed, and script1 was unable to open the file, and so
script2 wa
No, you receive the handle to the file. You cannot rename the handle.
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" <[EMA
"Jerry" <[EMAIL PROTECTED]> wrote:
> im trying to fopen a url with something like to following :
>
> fopen("something.com/something.txt", r);
>
> this returns a "0"
If you're trying to open an external file make sure you prepend the URL with
'http://'. If that's a local file and it's not finding
6 matches
Mail list logo