Re: cvs: phpdoc /en/reference/filesystem/functions fclose.xml feof.xml fflush.xml fgetc.xml fgetcsv.xml fgets.xml fgetss.xml flock.xml fopen.xml
fpassthru.xml fputs.xml fread.xml fscanf.xml
| From: | Derick Rethans | Date: | Sun, 12 Jan 2003 16:32:18 +0000 |
| Subject: | Re: cvs: phpdoc /en/reference/filesystem/functions fclose.xml feof.xml fflush.xml fgetc.xml fgetcsv.xml fgets.xml fgetss.xml flock.xml fopen.xml fpassthru.xml fputs.xml fread.xml fscanf.xml |
||
| References: | 1 2 3 4 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969350867@lists.php.net to get a copy of this message | ||
On Sun, 12 Jan 2003, Gabor Hojtsy wrote:
> > I changed handle to fp (rather than the other way 'round) because
> > all of those files listed used "fp" except for the ONE that used
> > "handle". That's of course not to say that we can't still change
> > 'em
> > all to "handle", but there are several examples peppered throughout
> > the manual which use $fp as the resource variable.
> >
> > I'm personnally -1 on using "handle" as the parameter name, but it's
> > a weak -1... maybe more of a -0.5
>
> Well, $fp is something kinda "leftover" for "file pointer". As fopen
> opens many more things then files (eg. STDIN :), it technically not a
> file pointer anymore. Therefore I think handle is better ;)
I'm for "handle" too.
Derick
--
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------