"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 script1 was unable to open the file, and so
> script2 was able to :p my bad.
>
> but it leads me to another question, is there a way to get the file size
> of something opened via httpd?

If you use fread() to save the contents of the file into a variable and then
use strlen() on the variable that will be pretty close.  If it's important
add on a few hundred bytes for the headers that don't get read in.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


-- 
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]

Reply via email to