Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2000071

Re: [PHP] fclose() problem From: Peter Lewis (pjlewis <email protected>)
Date: 07/07/00

Thanks, NO go!
(not for general use yet)
URL for non working is
http://peters.house.cx/postcards/pcindex.php3
for working (this part anyway)
http://peters.house.cx/postcards/pcindex2.php3
The number between the lines
--------
1855 //is result of echo $Count
-------
On Fri, 7 Jul 2000, gautam wrote:

> hi,
> try this it should work
> <?
> $name="./pcnum.txt";
> $file=fopen($name,"r");
> $Count=fread($file,filesize($name));
> fclose($file);
> $Count= $Count+ 1; // also used $Count += 1
> $fd=fopen($name,"w");
> fputs($fd,$Count);
> fclose($fd);
> ?>
> regards
> gautam
>
> Peter Lewis wrote:
<snip>
> > "
> >
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> > For additional commands, e-mail: php-general-help <email protected>
> > To contact the list administrators, e-mail: php-list-admin <email protected>
>
> --
> If it is to be, it is up to me
>
>
>

The thoughts of the righteous are right: but the counsels of the wicked are
deceit.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>