Re: open/read file/directory and file test

From: Date: Sat, 19 Jan 2002 21:54:29 +0000
Subject: Re: open/read file/directory and file test
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81249@lists.php.net to get a copy of this message
Juni, > On Sun, 20 Jan 2002, Juni Adi wrote: > > Hi folks, > After meessing up with installation stuffs, now > it's time for PHP code: > > 1. How to tell PHP to open a file like Perl do > through: > > open (FILE, $file); > > 2. Same question, this time to open/read a > directory: > > opendir (DIR, $dir); > > and > > readdir DIR; > > 3. Do PHP have a file test like -A $file in Perl? These questions (and more) are answered at http://www.php.net/manual/en/ref.filesystem.php There seem to be many similarities, but sorry can't help with comparisons between Perl and PHP. Regards, =dn

« previous php.general (#81249) next »