Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Robert Cummings
On Fri, 2008-04-25 at 14:52 -0400, Eric Butera wrote: > On Fri, Apr 25, 2008 at 2:50 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Why would anyone use htmlspecialchars() on a shell script? > > > > >:) > > Who uses a session in a cli script? Cron to destroy any expired sessions. Cheers,

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 1:16 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 3:12 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > meh; just make sure the instance holds what you want it to; it was just a > > contrived example to illustrate the syntax supported in double quot

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 1:14 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 3:09 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > i do; that way when the script terminates the session is wiped clean :D > > $GLOBALS would get you the same thing a lot easier. I've had to use

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 3:12 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > meh; just make sure the instance holds what you want it to; it was just a > contrived example to illustrate the syntax supported in double quotes, > currently. I know, I'm just goofing around on Friday. ;) -- PHP General

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 3:09 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > i do; that way when the script terminates the session is wiped clean :D $GLOBALS would get you the same thing a lot easier. I've had to use sessions in cli before just because I converted some old front-end scripts that us

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 1:08 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 2:51 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > class OutputEscaper { > > I dunno man. I have an escape() method on different classes such as > View (which can be told to use htmlspecialchars/

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 12:52 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 2:50 PM, Robert Cummings <[EMAIL PROTECTED]> > wrote: > > Why would anyone use htmlspecialchars() on a shell script? > > > > >:) > > Who uses a session in a cli script? > i do; that way when the s

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 2:51 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > class OutputEscaper { I dunno man. I have an escape() method on different classes such as View (which can be told to use htmlspecialchars/entities), DB, etc. This way you know you're doing $view->escape() or $db->escape()

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 2:50 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > Why would anyone use htmlspecialchars() on a shell script? > > >:) Who uses a session in a cli script? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 12:44 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 2:36 PM, Robert Cummings <[EMAIL PROTECTED]> > wrote: > > > > On Fri, 2008-04-25 at 12:25 -0600, Nathan Nobbe wrote: > > > On Fri, Apr 25, 2008 at 11:35 AM, Nick Stinemates < > [EMAIL PROTECTED]> >

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Robert Cummings
On Fri, 2008-04-25 at 14:44 -0400, Eric Butera wrote: > On Fri, Apr 25, 2008 at 2:36 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Fri, 2008-04-25 at 12:25 -0600, Nathan Nobbe wrote: > > > On Fri, Apr 25, 2008 at 11:35 AM, Nick Stinemates <[EMAIL PROTECTED]> > > > wrote: > > > > >

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 2:36 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2008-04-25 at 12:25 -0600, Nathan Nobbe wrote: > > On Fri, Apr 25, 2008 at 11:35 AM, Nick Stinemates <[EMAIL PROTECTED]> > > wrote: > > > > > On Fri, Apr 25, 2008 at 01:19:58PM -0400, Robert Cummings wrote:

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 12:36 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2008-04-25 at 12:25 -0600, Nathan Nobbe wrote: > > On Fri, Apr 25, 2008 at 11:35 AM, Nick Stinemates <[EMAIL PROTECTED]> > > wrote: > > > > > On Fri, Apr 25, 2008 at 01:19:58PM -0400, Robert Cummings wrote: >

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Robert Cummings
On Fri, 2008-04-25 at 12:25 -0600, Nathan Nobbe wrote: > On Fri, Apr 25, 2008 at 11:35 AM, Nick Stinemates <[EMAIL PROTECTED]> > wrote: > > > On Fri, Apr 25, 2008 at 01:19:58PM -0400, Robert Cummings wrote: > > > > > > I don't see how the throwing everything and the kitchen sink into double > > >

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 12:28 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 2:25 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > want to know a syntactic sugar feature i avoid like the plague, its the > > ternary operator! > > Like this? > > return (!is_dir($indexPath))

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 12:21 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2008-04-25 at 11:29 -0600, Nathan Nobbe wrote: > > On Fri, Apr 25, 2008 at 11:19 AM, Robert Cummings <[EMAIL PROTECTED]> > > wrote: > > > > > > > > On Fri, 2008-04-25 at 11:11 -0600, Nathan Nobbe wrote: > > >

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 2:25 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > want to know a syntactic sugar feature i avoid like the plague, its the > ternary operator! Like this? return (!is_dir($indexPath)) ? Zend_Search_Lucene::create($indexPath) : Zend_Search_Lucene::open($ind

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 11:37 AM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 11:29:05AM -0600, Nathan Nobbe wrote: > > here we are back at the classic syntactic sugar argument. at least weve > > moved past abstract classes and interfaces ! > > for now :) heh, r

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 11:35 AM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 01:19:58PM -0400, Robert Cummings wrote: > > > > I don't see how the throwing everything and the kitchen sink into double > > quotes support caters to either of these groups. It strikes me, and o

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Robert Cummings
On Fri, 2008-04-25 at 11:29 -0600, Nathan Nobbe wrote: > On Fri, Apr 25, 2008 at 11:19 AM, Robert Cummings <[EMAIL PROTECTED]> > wrote: > > > > > On Fri, 2008-04-25 at 11:11 -0600, Nathan Nobbe wrote: > > > On Fri, Apr 25, 2008 at 11:01 AM, Robert Cummings <[EMAIL PROTECTED]> > > > wrote: > > > >

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nick Stinemates
On Fri, Apr 25, 2008 at 11:29:05AM -0600, Nathan Nobbe wrote: > here we are back at the classic syntactic sugar argument. at least weve > moved past abstract classes and interfaces ! for now :) -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- PHP General Mailing Li

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nick Stinemates
On Fri, Apr 25, 2008 at 01:19:58PM -0400, Robert Cummings wrote: > > I don't see how the throwing everything and the kitchen sink into double > quotes support caters to either of these groups. It strikes me, and of > course that's who matters here >:), that it caters to the messy, "I wish > I REAL

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 11:19 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2008-04-25 at 11:11 -0600, Nathan Nobbe wrote: > > On Fri, Apr 25, 2008 at 11:01 AM, Robert Cummings <[EMAIL PROTECTED]> > > wrote: > > > > > On Fri, 2008-04-25 at 10:55 -0600, Nathan Nobbe wrote: > > > > > >

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Robert Cummings
On Fri, 2008-04-25 at 11:11 -0600, Nathan Nobbe wrote: > On Fri, Apr 25, 2008 at 11:01 AM, Robert Cummings <[EMAIL PROTECTED]> > wrote: > > > On Fri, 2008-04-25 at 10:55 -0600, Nathan Nobbe wrote: > > > > > > bah; concatenation operator - schmacatatenation operator! i dont really > > > care abou

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 11:02 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 12:55 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > i would like to see support for $a::$someStatic come > > callback :P > > http://us.php.net/manual/en/function.call-user-func-array.php > wor

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 11:01 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2008-04-25 at 10:55 -0600, Nathan Nobbe wrote: > > > > bah; concatenation operator - schmacatatenation operator! i dont really > > care about that; but i would like to see support for $a::$someStatic come > > b

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 12:55 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > i would like to see support for $a::$someStatic come callback :P http://us.php.net/manual/en/function.call-user-func-array.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Robert Cummings
On Fri, 2008-04-25 at 10:55 -0600, Nathan Nobbe wrote: > > bah; concatenation operator - schmacatatenation operator! i dont really > care about that; but i would like to see support for $a::$someStatic come > back. thats what im whining about ;) That funny part, IMHO, is that on internals they o

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 10:53 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2008-04-25 at 10:14 -0600, Nathan Nobbe wrote: > > On Fri, Apr 25, 2008 at 10:02 AM, Jason Pruim <[EMAIL PROTECTED]> > wrote: > > > > > > > > On Apr 25, 2008, at 11:56 AM, Nathan Nobbe wrote: > > > > > > On F

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Robert Cummings
On Fri, 2008-04-25 at 10:14 -0600, Nathan Nobbe wrote: > On Fri, Apr 25, 2008 at 10:02 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > > > On Apr 25, 2008, at 11:56 AM, Nathan Nobbe wrote: > > > > On Fri, Apr 25, 2008 at 9:50 AM, Leurent Francois <[EMAIL PROTECTED]> > >> wrote: > >> > >> Is th

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 10:02 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Apr 25, 2008, at 11:56 AM, Nathan Nobbe wrote: > > On Fri, Apr 25, 2008 at 9:50 AM, Leurent Francois <[EMAIL PROTECTED]> >> wrote: >> >> Is there any hope that >>> echo "Welcome {session::$user_info['user_name']}"; >

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Leurent Francois
I like the sess::reload() and sess::connect($user_login,$user_pswd); idea... > is there a reason why that would work better then: echo "Welcome > {$_SESSION['user_info']['user_name']}";? > > Just curious :) > > -- > > Jason Pruim > Raoset Inc. > Technology Manager > MQC Specialist > 3251 132nd

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Jason Pruim
On Apr 25, 2008, at 11:56 AM, Nathan Nobbe wrote: On Fri, Apr 25, 2008 at 9:50 AM, Leurent Francois <[EMAIL PROTECTED] > wrote: Is there any hope that echo "Welcome {session::$user_info['user_name']}"; will work someday, if not, is there a simple reason i'm missing ? actually, if you see

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 9:50 AM, Leurent Francois <[EMAIL PROTECTED]> wrote: > Is there any hope that > echo "Welcome {session::$user_info['user_name']}"; > > will work someday, if not, is there a simple reason i'm missing ? actually, if you see my post from the other day, this is something that

[PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Leurent Francois
Is there any hope that echo "Welcome {session::$user_info['user_name']}"; will work someday, if not, is there a simple reason i'm missing ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php