Re: is_readable() returns 1 if file is still uploading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Merlin Morgenstern wrote:
Hi there,

I am importing data out of xml files on a linux server. Now I am running into problems if the file is currently beeing uploaded and the upload has not finished to the server. Is there a function which returns true if the file is complete and not in upload status? I tried is_readable(), but this only returns false if the file is missing.

It will also return false if your user doesn't have permission to read the file.


This is the error msg from php:
parser error : Premature end of data

thank you for any help.

regards, merlin



--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux