php-general | 2000071
Date: 07/07/00
- Next message: \[ rswfire \]: "[PHP] Session Management and Sub-Domains"
- Previous message: David Robley: "Re: [PHP] fclose() problem"
- In reply to: gautam: "Re: [PHP] fclose() problem"
- Next in thread: David Robley: "Re: [PHP] fclose() problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: \[ rswfire \]: "[PHP] Session Management and Sub-Domains"
- Previous message: David Robley: "Re: [PHP] fclose() problem"
- In reply to: gautam: "Re: [PHP] fclose() problem"
- Next in thread: David Robley: "Re: [PHP] fclose() problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

