che versione di php usi?

perchè dal manuale dice:

As of PHP 5.0.0 this function can also be used with some URL wrappers. Refer to List of Supported Protocols/Wrappers for a listing of which wrappers support stat() family of functionality.
Quindi presumo che se hai una versione inferiore alla 5 non puoi leggere le dimensioni di un file che sta su un altra macchina.

ciao