From: Matthew M. <ma...@tu...> - 2002-02-01 20:49:57
|
Anyone else seeing this? ---------------------------------------------- Incompatibility 8.1.1 with PHP 4.1.1 There is incompatibility with 8.1.1 and PHP 4.1.1. When you log-in as administrator and click on any link on page, you will be immeditely logged- out. Therefore it is not possible to administer your website. Problem is in different work with global variables and sessions in PHP 4.1.1. You have to find all presences of "global $admintest..." in non-function scope and to comment it ("//global $admintest..."). Source of the problem is illustrated on this piece of code: session_start(); global $counter; //when you remove this row, all will work properly session_register("counter"); $counter++; echo $counter; On PHP 4.0.6 works both versions (with "global $counter;" and without it) properly. On PHP 4.1.1 works properly only version without "global $counter;". br...@se... Matthew McNaney Internet Systems Architect Electronic Student Services Email: ma...@tu... URL: http://phpwebsite.appstate.edu Phone: 828-262-6493 ICQ: 141057403 |