Re: [PHP] If-statement

2001-08-29 Thread Darius Ivanauskas
if(!preg_match("/^No[123]$/",$Var)) { code } -- Darius Ivanauskas On Wed, 29 Aug 2001, [iso-8859-1] Niklas Lampén wrote: > Is it possible to write this shorter: > > if ($Var != "No1" && $Var != "No2" && $Var != "No3") { >

Re: [PHP] Dreamweaver templates

2001-08-20 Thread Darius Ivanauskas
I think you should look at Smarty Template Engine: http://www.phpinsider.com/php/code/Smarty/ Hope this helps. Regards -- Darius Ivanauskas On Mon, 20 Aug 2001, -:-Doigy-:- wrote: > Hi Folks, > > Can't find an answer in the archives... > Can php parse DW templates? > ie.

Re: [PHP] How to resume session by id?

2001-08-16 Thread Darius Ivanauskas
On Thu, 16 Aug 2001, Renze Munnik wrote: > On Thu, Aug 16, 2001 at 05:41:47PM +0200, Darius Ivanauskas wrote: > > What we have here: registering variable $Session into current session. > > This code works perfectly if session id is propogated normally. > > Bu what i need

RE: [PHP] How to resume session by id?

2001-08-16 Thread Darius Ivanauskas
ethod. And using url as i wrote before it doesn't gets session id and starts new session :(( So i need somehow to force it to use known session_id and start session using this session_id. -- Darius Ivanauskas > > > -Original Message- > From: Darius Ivanauskas [mailto:[E

RE: [PHP] How to resume session by id?

2001-08-16 Thread Darius Ivanauskas
't gets session_id neither trough GET/POST nor cookie. : -- Darius Ivanauskas > if (session_is_registered("Session")) { > /* This code is run if Session called "Session" is registered */ > }; > > > Hopefully this helps you out. > >

[PHP] How to resume session by id?

2001-08-16 Thread Darius Ivanauskas
I'm getting session id neither from cookie, nor from GET/POST vars, but by parsing url like: http://myserver.com/script.php//blah/blah How do i resume session by given ? Thanks in advance. -- Darius Ivanaukas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

[PHP] parse and fatal errors don't seem to touch my handler

2001-08-08 Thread Darius Ivanauskas
Any ideas ? Regards, Darius Ivanauskas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Error Handling: How to handle fatal errors?

2001-08-06 Thread Darius Ivanauskas
din't get control when fatal error occurs. Is there way to solve my problem. Regards, Darius Ivanauskas -- P.S. Sorry for my english, it isn't my first language .. :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma