|
| Filesystem functions |
 |
Tue, 14 Nov 2006 19:52:41 GMT |
Hey --
Do the filesystem functions not work with Netware?
For example, with the following code snippet, only dirname() returns
anything:
<?php
echo dirname('SYS:/Apache2/htdocs/' . 'jay.txt');
echo '<br />', "rn";
echo filetype('SYS:/Apache2/htdocs/' . 'jay.txt');
echo '<br />', "rn";
echo filesize('SYS:/Apache2/htdocs/' . 'jay.txt');
echo '<br />', "rn";
echo fileperms('SYS:/Apache2/htdocs/' . 'jay.txt');
echo '<br />', "rn";
echo fileowner('SYS:/Apache2/htdocs/' . 'jay.txt');
?>
|
| Post Reply
|
| Re: Filesystem functions |
 |
Tue, 14 Nov 2006 21:36:49 GMT |
Hi Jay,
jlink@btsb.com (Jay Link) wrote in news:d8p6h.3567$rF4.1511@prv-
forum2.provo.novell.com:
> Hey --
hiho!
> Do the filesystem functions not work with Netware?
which versions of os, php, libc?
> For example, with the following code snippet, only dirname() returns
> anything:
>
> <?php
> echo dirname('SYS:/Apache2/htdocs/' . 'jay.txt');
> echo '<br />', "rn";
> echo filetype('SYS:/Apache2/htdocs/' . 'jay.txt');
> echo '<br />', "rn";
> echo filesize('SYS:/Apache2/htdocs/' . 'jay.txt');
> echo '<br />', "rn";
> echo fileperms('SYS:/Apache2/htdocs/' . 'jay.txt');
> echo '<br />', "rn";
> echo fileowner('SYS:/Apache2/htdocs/' . 'jay.txt');
> ?>
I tested a slightly modified version which works correct for me:
<?php
$myfile = __FILE__;
echo "file : " . $myfile . '<br>';
echo "basename : " . basename($myfile) . '<br>';
echo "dirname : " . dirname($myfile) . '<br>';
echo "filetype : " . filetype($myfile) . '<br>';
echo "filesize : " . filesize($myfile) . '<br>';
echo "fileperms: " . fileperms($myfile) . '<br>';
echo "fileowner: " . fileowner($myfile) . '<br>';
?>
Guenter.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|