|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-12-15 02:32 UTC] hholzgra@php.net
[2001-02-24 12:43 UTC] jmoore@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 20:00:02 2025 UTC |
The following simple script should increment the counter by 1 on each reload. Instead it increments by 3 on the first reload, then increments by 1 on subsequent reloads. Removing the phpinfo() command allows the counter to operate correctly. Placing the phpinfo() command before the session start does not work either. Please let me know if I have done something wrong, or if this is a real problem. I am not running the isapi module. Thanks Steven <html><head><title>PHP Test</title></head> <body> <? // initialize a session session_start(); // register a session variable session_register ("counter"); // increment value of counter $counter++; // Display a cute message with counter echo("You have reloaded this page $counter times.<P>"); // Display whole bunch of information phpinfo(); ?> </body></html>