|
Posted by "Mark Rees" on 08/17/05 11:28
"Jesϊs Alain Rodrνguez Santos" <wmaster@cfg.jovenclub.cu> wrote in message
news:1939.192.168.6.60.1124215951.squirrel@correo.cfg.jovenclub.cu...
> Hi, I have in a php page one ($variable = 85), I woud like to change the
> value from this variable online, without any data base, for example ussing
> a form where I can put the new value and it change the value of the
> $variable.
>
Do you mean that you have a page like this, for example:
1.php
<?php
$variable=85;
if( $variable>85 ){
do things;
}
?>
And you wish to permanently change the value of $variable to 86?
You could use file rewriting functions to do this. Look in the manual for
fputs, fread, fwrite and their friends.
If you wish to change the value temporarily for a single user visit
(session), use a session variable to store it. If you wish to change it for
a period of time, then perhaps consider using a class to retrieve the
variable.
>
> --
> Este mensaje ha sido analizado por MailScanner
> en busca de virus y otros contenidos peligrosos,
> y se considera que estα limpio.
>
Navigation:
[Reply to this message]
|