Re: Php lib?

From: Date: Tue, 13 Aug 2002 10:00:11 +0000
Subject: Re: Php lib?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-112287@lists.php.net to get a copy of this message
Hi, sets the value of the var to be parsed later. HTH Andrey ----- Original Message ----- From: "John Wards" <j.wards@sportnetwork.net> To: <php-general@lists.php.net> Sent: Tuesday, August 13, 2002 12:58 PM Subject: Re: [PHP] Php lib? > Thanks for that rather handy! > > Does anyone know what the function set_var() does in template.inc in phplib? > I persume it has something to do with the template system.....but thats as > much as I have figured out!! > > I am going to replace the phplib template system with Smarty there is not a > converter for this(wishful thinking! anything for an easy life) > > My boss set me this task before he went on holiday...I am sure he is bloody > laghing his socks off right now! I wondered why he never bothered porting > this for PHP4! > > Arrrrrrrrrrgh! > > John > > > Anyone got any handy hints on how to convert scripts running > > > on PHP3 and > > > PHPlib? > > > > 1. Roughly speaking, page_open() goes to session_start(): > > > > Old: > > page_open(array("sess" => "my_web_Session")); > > > > New: > > session_start(); > > > > 2. page_close() goes away; if you don't have time to remove all those > calls, > > write your own page_close() function that simply returns true. > > > > 3. Use functions instead of methods for managing the session variables. > For > > example, for the object $sess created in step 1 above: > > > > Old: > > $sess->register('firstName'); > > > > New: > > session_register('firstName'); > > > > Brings back fond memories - not! ;) > > > > Kirk > > > > -- > > 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 > >

« previous php.general (#112287) next »