php-windows Digest 13 Aug 2003 12:41:21 -0000 Issue 1868
Topics (messages 21131 through 21134):
Re: How to preserve value ?
21131 by: Mike Jenck
How to preserve value , this question so difficult
21132 by: Thomas Edward Lawrence
embedding php to an application
21133 by: Ariz Jacinto
Re: Hack Q...
21134 by: Jon Phipps
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
You might try something like this
if !isset($value) {
$value = 1
}
"Thomas Edward Lawrence" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have three pages :
>
> page1.php
> <?
> session_start() ;
> session_register("value") ;
> $value = 1
> ?>
>
> page2.php
> <?
> session_start() ;
> $value++ ;
> ?>
>
> page3.php
> <form method="POST" action="page1.php">
> <?
> session_start() ;
> $value++ ;
> ?>
> <input type="submit" value="Submit" name="B1">
> </form>
>
> I would like I can preserve value of $value now is 3 when I come back to
> page1.php from page3.php , when I come back page1.php value of $value is
now
> set to 1, please help me , thanks
>
>
>
>
>
--- End Message ---
--- Begin Message ---
this is page1.php
<?
session_start() ;
echo $value ;
if (!session_is_registered("value") )
{
session_register("value") ;
$value = 1 ;
}
echo $value ;
?>
<br>
<a href="page2.php">Next page</a>
this is page2.php
<form method="POST" action="page1.php">
<?
session_start() ;
$value++ ;
echo $value ;
?>
<br>
<input type="submit" value="Submit" name="B1">
</form>
when I come back to page1.php from page2.php , this is result :
page1.php ( run at first time)
Warning: Cannot send session cookie - headers already sent by (output started at
C:\PHP\page1.php:9) in C:\PHP\\page1.php on line 10
Warning: Cannot send session cache limiter - headers already sent (output started at
C:\PHP\page1.php:9) in C:\PHP\page1.php on line 10
Notice: Undefined variable: value in C:\PHP\page1.php on line 11
1 (value of $value)
Next page
page2.php
Warning: Cannot send session cache limiter - headers already sent (output started at
C:\PHP\page2.php :10) in C:\PHP\page2.php on line 11
2 (value of $value)
page1.php ( when come back from page2.php)
Warning: Cannot send session cookie - headers already sent by (output started at
C:\PHP\page1.php :9) in C:\PHP\page1.php on line 10
Warning: Cannot send session cache limiter - headers already sent (output started at
C:\PHP\page1.php:9) in C:\PHP\page1.php on line 10
Notice: Undefined variable: value in C:\PHP\page1.php on line 11 (browser not
understanding $value)
1 (value of $value still 1)
Next page
Nothing changes , value of $value still is 1 , this question is so difficult , I also
want to ask why my browser warns , how I must config in php.ini , I use IE6 , win2k ,
thank for reading .
--- End Message ---
--- Begin Message ---
how do i embed php to an application?
should i simply link the application to php4embed.lib library?
--- End Message ---
--- Begin Message ---
That is the tell tale sign that either nimda or code red, I for get
which have been scouting your system. If you run apache server dont
worry about it as they can only opperate on IIS platforms.
JON
Skate wrote:
Is someone trying to hack my computer?
"GET /scripts/..%255c%255c../winnt/system32/cmd.exe?/c+dir"
Any idea what this means?
--- End Message ---