Re: Why fstat(); not working?
| From: | Chris Lee | Date: | Wed, 29 Nov 2000 03:01:14 +0000 |
| Subject: | Re: Why fstat(); not working? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27850@lists.php.net to get a copy of this message | ||
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.
device
inode
number of links
user id of owner
group id owner
device type if inode device
size in bytes
time of last access
time of last modification
time of last change
blocksize for filesystem I/O
number of blocks allocated
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
In article <903fa6$32i$1@toye.p.sourceforge.net>, nikolajk@infosistema.lt
wrote:
> I'm using php4.0.3pl1
> -----------------
> <?
> $fp =
> fopen("http://somewhere/somthing","r");
> if ($fp) echo "OK"; else echo "No";
> $stats=fstat($fp);
>
> for ($x=0;$x<=12;$x++) {
> echo $stats[$x]."<br>";
> }
>
> fclose($fp);
> ?>
> -----------------------------
> First line of output is OK bet the array is empty :/ i haven't no info
> about this file :/
>
>
> Thanks
>
>
>