[PHP] evaluating php expressions using Sablotron

2002-05-29 Thread R.J.C. Vos
Hi, I am using php >4.1, with Sablotron. I have both an xml and xsl file, and use sablotron to output html. But the php expressions inside these files are not evaluated (i.e. left out in the html-file) How can they be evaluated for sure? (most examples use sablotron with php4.0 and

Re: [PHP] expressions

2001-01-31 Thread CC Zona
[re-arranging quotes to bottom posting] In article <9556pp$sna$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Jeff Warrington") wrote: > > hi, im trying to fix this couple of hours but i couldnt find the > > mistake... can somebody look at it... > > > > first i want to check the $co_area for 3 digita

Re: [PHP] expressions

2001-01-29 Thread Jeff Warrington
In article <94t6hv$903$[EMAIL PROTECTED]>, "Kumanan" <[EMAIL PROTECTED]> wrote: if (eregi("[^0-9]{3}",$co_area)) { print("area code must be digits"); } or if (eregi("[^[:digit:]]{3}",$co_area)) if you use the POSIX regex fields. > hi, im trying to fix this couple of hours but i couldnt

Re: [PHP] expressions

2001-01-26 Thread Stephan Ahonen
> if ($co_area != !ereg("([0-9]{3})",$co_area)) > { echo " * Area code must be 3 digital"; } I don't know anything about ereg and regex, so if there's an error in that part I won't be able to help with that, but I can tell you that ($something != !$something_else) is a double negative, it's like

[PHP] expressions

2001-01-26 Thread Kumanan
hi, im trying to fix this couple of hours but i couldnt find the mistake... can somebody look at it... first i want to check the $co_area for 3 digital ... it must contain 3 digital if ($co_area != !ereg("([0-9]{3})",$co_area)) { echo " * Area code must be 3 digital"; } second... nickname c