Re: [PHP] reading Qmail boxes

2008-04-25 Thread Richard Kurth
Manuel Lemos wrote: Hello, Richard Kurth wrote: I what to read the email headers that are in a Qmail mailbox so that I can run it threw a filter and see what mail bounced for what reason. How do I do this being that the ownership on Qmail mailboxes are diferent from the owner that runs php

Re: [PHP] reading Qmail boxes

2008-04-25 Thread Manuel Lemos
Hello, Richard Kurth wrote: > I what to read the email headers that are in a Qmail mailbox so that I > can run it threw a filter and see what mail bounced for what reason. > How do I do this being that the ownership on Qmail mailboxes are > diferent from the owner that runs php and apache You c

Re: [PHP] peer review (was php framework vs just php?)

2008-04-25 Thread Robert Cummings
Wow, that's umm hideous. Cheers, Rob. On Fri, 2008-04-25 at 22:43 -0400, Bastien Koert wrote: > damn reply-all > > On 4/25/08, Ray Hauge <[EMAIL PROTECTED]> wrote: > > > > Jay Blanchard wrote: > > > >> I did a quick and dirty of just one of those functions. This function > >> takes a table and

Re: [PHP] the most amazing php code i have ever seen so far

2008-04-25 Thread mike
On 4/25/08, paragasu <[EMAIL PROTECTED]> wrote: > too bad, i can't find any framework out there using this concept. well, i > think > have to figure out how it works and code on my own. can anyone kind enough > to > give me a good reference to read about this? google? :) http://en.wikipedia.or

Re: [PHP] peer review (was php framework vs just php?)

2008-04-25 Thread Bastien Koert
damn reply-all On 4/25/08, Ray Hauge <[EMAIL PROTECTED]> wrote: > > Jay Blanchard wrote: > >> I did a quick and dirty of just one of those functions. This function >> takes a table and creates a form based on the table. It needs quite a >> bit of refining, but I am willing to share and let you guy

Re: [PHP] the most amazing php code i have ever seen so far

2008-04-25 Thread paragasu
On Sat, Apr 26, 2008 at 1:47 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 1:29 PM, Nick Stinemates <[EMAIL PROTECTED]> > wrote: > > That is a beatiful example of the observer pattern. > > too bad, i can't find any framework out there using this concept. well, i think hav

Re: [PHP] peer review (was php framework vs just php?)

2008-04-25 Thread Ray Hauge
Jay Blanchard wrote: I did a quick and dirty of just one of those functions. This function takes a table and creates a form based on the table. It needs quite a bit of refining, but I am willing to share and let you guys and gals throw suggestions; I use a very similar style of approach, but it

RE: [PHP] peer review (was php framework vs just php?)

2008-04-25 Thread Jay Blanchard
[snip] to add to this; i dealt w/ a clunky codebase at my last job.  working w/ single table form generation was a snap, why you could even tell it which columns you wanted to display!  it would also try to build the appropriate input type in html and handled creation of select elements and what

RE: [PHP] peer review (was php framework vs just php?)

2008-04-25 Thread Jay Blanchard
[snip] I can't say I've ever had a form that exactly matched a database table for a user perspective. From an admin perspective that changes, but that was when I downloaded PHPMyAdmin for the client. It was amazing, every form matched the database table and you could view all the rows too, and even

Re: [PHP] OS need anything for mail() to work?

2008-04-25 Thread Shawn McKenzie
Shawn McKenzie wrote: Brian Dunning wrote: Is there any way for PHP to know that this email is not going through? On Apr 25, 2008, at 1:21 PM, Eric Butera wrote: Apr 24 17:03:34 MacBrian postfix/error[10699]: F19D21287847: to=<[EMAIL PROTECTED]>, relay=none, delay=4470, delays=4440/30/0/0, ds

Re: [PHP] OS need anything for mail() to work?

2008-04-25 Thread Shawn McKenzie
Shawn McKenzie wrote: Brian Dunning wrote: Is there any way for PHP to know that this email is not going through? On Apr 25, 2008, at 1:21 PM, Eric Butera wrote: Apr 24 17:03:34 MacBrian postfix/error[10699]: F19D21287847: to=<[EMAIL PROTECTED]>, relay=none, delay=4470, delays=4440/30/0/0, ds

Re: [PHP] OS need anything for mail() to work?

2008-04-25 Thread Shawn McKenzie
Brian Dunning wrote: Is there any way for PHP to know that this email is not going through? On Apr 25, 2008, at 1:21 PM, Eric Butera wrote: Apr 24 17:03:34 MacBrian postfix/error[10699]: F19D21287847: to=<[EMAIL PROTECTED]>, relay=none, delay=4470, delays=4440/30/0/0, dsn=4.4.1, status=deferre

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] OS need anything for mail() to work?

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 4:44 PM, Brian Dunning <[EMAIL PROTECTED]> wrote: > Is there any way for PHP to know that this email is not going through? > > > On Apr 25, 2008, at 1:21 PM, Eric Butera wrote: > > > > > > > > > > Apr 24 17:03:34 MacBrian postfix/error[10699]: F19D21287847: > > > to=<[EMAIL

Re: [PHP] OS need anything for mail() to work?

2008-04-25 Thread Brian Dunning
Is there any way for PHP to know that this email is not going through? On Apr 25, 2008, at 1:21 PM, Eric Butera wrote: Apr 24 17:03:34 MacBrian postfix/error[10699]: F19D21287847: to=<[EMAIL PROTECTED]>, relay=none, delay=4470, delays=4440/30/0/0, dsn=4.4.1, status=deferred (delivery temporaril

Re: [PHP] OS need anything for mail() to work?

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 4:16 PM, Brian Dunning <[EMAIL PROTECTED]> wrote: > Here is what the log shows for the attempts: > > Apr 24 17:03:34 MacBrian postfix/error[10699]: F19D21287847: > to=<[EMAIL PROTECTED]>, relay=none, delay=4470, delays=4440/30/0/0, > dsn=4.4.1, status=deferred (delivery tem

Re: [PHP] OS need anything for mail() to work?

2008-04-25 Thread Stut
On 25 Apr 2008, at 21:16, Brian Dunning wrote: Here is what the log shows for the attempts: Apr 24 17:03:34 MacBrian postfix/error[10699]: F19D21287847: to=<[EMAIL PROTECTED] >, relay=none, delay=4470, delays=4440/30/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to

Re: [PHP] OS need anything for mail() to work?

2008-04-25 Thread Brian Dunning
Here is what the log shows for the attempts: Apr 24 17:03:34 MacBrian postfix/error[10699]: F19D21287847: to=<[EMAIL PROTECTED] >, relay=none, delay=4470, delays=4440/30/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to skeptoid.com[72.32.102.215]: Operation timed o

Re: [PHP] OS need anything for mail() to work?

2008-04-25 Thread Jason Pruim
On Apr 25, 2008, at 2:07 PM, Brian Dunning wrote: I'm running PHP 5.2.5 on OS X 10.5.2, and using the following code: ini_set('sendmail_from','[EMAIL PROTECTED]'); ini_set('SMTP','working.server.com'); mail('[EMAIL PROTECTED]', 'Subject', 'Message'); The servers and addresses are KNOWN TO WOR

Re: [PHP] foreach loop to set variables

2008-04-25 Thread Jim Lucas
jamest wrote: I am passing an array to a class which I want to take the array data and create some variables from the array's keys and values. So I want to create (in this case 21) new variables that I want to create in the foreach but with no success. foreach ($formdata as $key => $value) {

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] OS need anything for mail() to work?

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 2:07 PM, Brian Dunning <[EMAIL PROTECTED]> wrote: > I'm running PHP 5.2.5 on OS X 10.5.2, and using the following code: > > ini_set('sendmail_from','[EMAIL PROTECTED]'); > ini_set('SMTP','working.server.com'); > mail('[EMAIL PROTECTED]', 'Subject', 'Message'); > > The se

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] OS need anything for mail() to work?

2008-04-25 Thread Stut
On 25 Apr 2008, at 19:07, Brian Dunning wrote: I'm running PHP 5.2.5 on OS X 10.5.2, and using the following code: ini_set('sendmail_from','[EMAIL PROTECTED]'); ini_set('SMTP','working.server.com'); mail('[EMAIL PROTECTED]', 'Subject', 'Message'); The servers and addresses are KNOWN TO WORK, I

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] OS need anything for mail() to work?

2008-04-25 Thread Robert Cummings
On Fri, 2008-04-25 at 11:07 -0700, Brian Dunning wrote: > I'm running PHP 5.2.5 on OS X 10.5.2, and using the following code: > > ini_set('sendmail_from','[EMAIL PROTECTED]'); > ini_set('SMTP','working.server.com'); > mail('[EMAIL PROTECTED]', 'Subject', 'Message'); > > The servers and addresses

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: > > > >

[PHP] OS need anything for mail() to work?

2008-04-25 Thread Brian Dunning
I'm running PHP 5.2.5 on OS X 10.5.2, and using the following code: ini_set('sendmail_from','[EMAIL PROTECTED]'); ini_set('SMTP','working.server.com'); mail('[EMAIL PROTECTED]', 'Subject', 'Message'); The servers and addresses are KNOWN TO WORK, I use this same code and same info on a number o

Re: [PHP] the most amazing php code i have ever seen so far

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 1:29 PM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > That is a beatiful example of the observer pattern. Just for the record I take no credit on that whatsoever. I'm just repeating what I've found elsewhere. The key (for me anyways) is that the subject doesn't have to i

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] the most amazing php code i have ever seen so far

2008-04-25 Thread Nick Stinemates
On Thu, Apr 24, 2008 at 10:41:05AM -0400, Eric Butera wrote: > I can't show you the code because I wrote it on company time therefore > I don't own it. > > A very generalized example. > > Register events: > $events = array( > array('event'=>'onSave', 'class'=>'localEvents', > 'method'=>'ha

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] Re: php framework vs just php?

2008-04-25 Thread Nick Stinemates
On Wed, Apr 23, 2008 at 01:46:14PM +0200, Aschwin Wesselius wrote: > Lester Caine wrote: >> 'If it isn't broken don't fix it' causes a problem when YOU know that the >> step change will make future development easier, but the customers keep >> asking - 'Can you just add XXX' :( > > So they ac

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] peer review (was php framework vs just php?)

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 10:59 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2008-04-25 at 11:17 -0500, Jay Blanchard wrote: > > I did a quick and dirty of just one of those functions. This function > > takes a table and creates a form based on the table. It needs quite a > > bit of refi

Re: [PHP] peer review (was php framework vs just php?)

2008-04-25 Thread paragasu
>With this I need one function call to create the form on the page. I can >exclude columns and set an action to be taken once the form is filled >out. this work for general form. but when i need to make more complicated form - with AJAX to look up for username (available or not). Then the class be

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] peer review (was php framework vs just php?)

2008-04-25 Thread Robert Cummings
On Fri, 2008-04-25 at 11:17 -0500, Jay Blanchard wrote: > I did a quick and dirty of just one of those functions. This function > takes a table and creates a form based on the table. It needs quite a > bit of refining, but I am willing to share and let you guys and gals > throw suggestions; > > fu

Re: [PHP] foreach loop to set variables

2008-04-25 Thread jamest
Thats perfect. I didn't even know about this. Stut wrote: > > > $$key = $value; > > They're called variable variables - search the manual for that term > for more info. > > -Stut > > -- > http://stut.net/ > > -- View this message in context: http://www.nabble.com/foreach-loop-to-set

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

[PHP] peer review (was php framework vs just php?)

2008-04-25 Thread Jay Blanchard
I did a quick and dirty of just one of those functions. This function takes a table and creates a form based on the table. It needs quite a bit of refining, but I am willing to share and let you guys and gals throw suggestions; function formCreate($database, $table, $action, $excludeCols, $recordI

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

Re: [PHP] foreach loop to set variables

2008-04-25 Thread Casey
On Apr 25, 2008, at 6:12 AM, jamest <[EMAIL PROTECTED]> wrote: I am passing an array to a class which I want to take the array data and create some variables from the array's keys and values. So I want to create (in this case 21) new variables that I want to create in the foreach but wit

Re: [PHP] foreach loop to set variables

2008-04-25 Thread Jason Norwood-Young
On Fri, 2008-04-25 at 06:12 -0700, jamest wrote: > I am passing an array to a class which I want to take the array data and > create some variables from the array's keys and values. > > So I want to create (in this case 21) new variables that I want to create in > the foreach but with no success.

Re: [PHP] foreach loop to set variables

2008-04-25 Thread Stut
On 25 Apr 2008, at 14:12, jamest wrote: I am passing an array to a class which I want to take the array data and create some variables from the array's keys and values. So I want to create (in this case 21) new variables that I want to create in the foreach but with no success. foreach ($f

[PHP] foreach loop to set variables

2008-04-25 Thread jamest
I am passing an array to a class which I want to take the array data and create some variables from the array's keys and values. So I want to create (in this case 21) new variables that I want to create in the foreach but with no success. foreach ($formdata as $key => $value) { echo "$ke

Re: [PHP] mbstring vs iconv - Any existing benchmark?

2008-04-25 Thread Per Jessen
Yannick Warnier wrote: > The basic functions offered by both extensions seem to be providing > *about* the same features, and I read a ppt presentation from Carlos > Hoyos [1] just saying this: > > " > PHP supports multi byte in two extensions: iconv and mbstring > * iconv uses an external libra

Re: [PHP] reading Qmail boxes

2008-04-25 Thread Per Jessen
Richard Kurth wrote: > I what to read the email headers that are in a Qmail mailbox so that I > can run it threw a filter and see what mail bounced for what reason. > How do I do this being that the ownership on Qmail mailboxes are > diferent from the owner that runs php and apache Don't run yo