Re: Why fstat(); not working?

From: Date: Wed, 29 Nov 2000 04:14:45 +0000
Subject: Re: Why fstat(); not working?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-27858@lists.php.net to get a copy of this message
Good guess is somewhere Im sure, but I don't have it. after viewing the C code for php, you can see your function at http://lxr.php.net/source/php4/ext/standard/file.c#1584 The line you should be conserned about is, http://lxr.php.net/source/php4/ext/standard/file.c#1598 it apears that when opening an http connection with fstat() that the C function fstat() or fileno() is returning false. I am not a C programmer and can not explain why it does so. One other thing I did forget to mention earier though is that you will find some web servers will not send back a correct response that php can descipher, you may not be establishing a connection, try echoing that file to the screen. Chris Lee Mediawaveonline.com In article <903ig0$u4r$1@toye.p.sourceforge.net>, nikolajk@infosistema.lt wrote: >> I have never used this function, but can take a good guess and say that >> it wont work over http connections. according to >> >> http://www.php.net/manual/function.fstat.php >> >> fstat returns this in an array. >> >> >> Now you as well as I know how would you find any of this data (except >> size) over an http connection? simple anser, you can't the information >> doesnt exist, thats why your array is empty. >> >> Chris Lee Mediawaveonline.com > > Exept size? But i haven't size info too? Why? :/ > > >

« previous php.general (#27858) next »