Re: URGENT: session information
| From: | António Rafael Paiva | Date: | Wed, 09 Apr 2003 17:59:14 +0000 |
| Subject: | Re: URGENT: session information | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143132@lists.php.net to get a copy of this message | ||
On Wed, 9 Apr 2003 10:27:39 -0400
"Dan Joseph" <djoseph@duhq.us> wrote:
Can you post your code? -Dan JosephMy code is (very simple since is just a first test): -------------------- <?php session_start(); session_register("user","count"); if (!isset($user)) { $user = "guest"; $count = 1; } $count++; ?> <html> <head> <title>Exemplo com cookies</title> </head> <body> <br> Ola <?php echo $user ?>!<br> Voce visitou esta pagina <?php echo $count ?> vezes. </body> </html> -------------------- By the way my PHP version is 4.3.1. Thanks for you help! Rafael
-----Original Message----- From: António Rafael Paiva [mailto:a20130@alunos.det.ua.pt] Sent: Wednesday, April 09, 2003 10:24 AM To: PHP list Subject: [PHP] URGENT: session information Hi all! I'm a newbie in PHP and i need to make session control of users to my final graduate project. I already read a book about PHP and started with a few examples (about sessions) taken from there but in the browser i get the text "Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0" and the session code which as suposed to increment a counter doesn't work. Do i have to make any change in the way functions are called? Any help would be much appreciated. ---------------------------------------------------- António Rafael C. Paiva Electronics and Telecommunications Dep. Aveiro University -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php---------------------------------------------------- António Rafael C. Paiva Electronics and Telecommunications Dep. Aveiro University