Re: [PHP] Closure and $this

2011-01-12 Thread Greg Bair
On Wed, 12 Jan 2011 20:02:11 -0800 (PST)
Raymond Irving xwis...@yahoo.com wrote:

 Hello,
 Does anyone know if closures will ever support the $this keyword? 
 I think it would be very useful when working with objects.
 
 Best regards__RaymondDo more with less - http://raxanpdi.com
 

Probably not, and my understanding of why comes from this line from the
docs (http://www.php.net/manual/en/functions.anonymous.php):

Anonymous functions are currently implemented using the Closure class.

So, in other words, your closure does not belong to the class you
declare it in, but the Closure class.

 Thus, if it supported the $this variable, it would refer not to the
 class you want, but instead to the Closure class.

Just my understanding.  If it's not right, someone point it out.

-- 
Greg Bair
PHP Developer

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache and PHP segfaults on Redhat EL5

2011-01-07 Thread Greg Bair
On Fri, 7 Jan 2011 16:24:13 -0500
Daniel Brown danbr...@php.net wrote:

 On Thu, Jan 6, 2011 at 22:55, Jimmy Stewpot mail...@oranged.to
 wrote:
 
  Is there a method or way that I can enable a 'debug' mode in php
  which would help me track down and identify the root cause of these
  problems? If anyone has any suggestions on what I can do to try and
  get further down the track to enlightenment I would be really
  appreciated.
 
 Natively, no, but the de facto standard is Derick's Xdebug package
 (http://xdebug.org/).  If you can, compile PHP from source and do away
 with the EL5 package.  That'll most likely rid you of the segfaults,
 but will leave their cause as an unsolved mystery.  If you're okay
 with giving up and not knowing, you'll probably save yourself a lot of
 time and headaches.
 

Also, you might try asking on a RH list or forum, this might be a known
issue with a workaround.  If all else fails, file a bug.

-- 
Greg Bair
PHP Developer

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Job Search

2010-12-31 Thread Greg Bair
On Fri, 31 Dec 2010 09:11:31 -0500
Ethan Rosenberg eth...@earthlink.net wrote:

 Dear list -
 
 I am an entry level data base programmer [PHP/MySQL HTTP/CSS] looking 
 for work in the NY metropolitan area.  Any ideas?
 
 Should we have a job search board?
 
 Ethan

phpdeveloper.org has a nice job board at http://jobs.phpdeveloper.org/.

-- 
Greg Bair
PHP Developer

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Printing PDF

2010-12-29 Thread Greg Bair
On Wed, 29 Dec 2010 10:36:30 -0500
Steve Staples sstap...@mnsi.net wrote:

 Hi!
 
 I have an app that needs to be created, and it is all running on
 linux. I am sure I shoulnd't really write it using PHP, but it's
 kinda what I know, and am familiar with... so I am thinking about
 doing with PHP.
 
 Anyway, for simplicity sake, i am creating a pdf through php (no
 problems there) and it needs to be printed.  I've never done printing
 on linux, but is there an easy way to send the pdf print job via
 command lines to the local (or network) printer?
 
 a friend of mine said postscript or cups, but I am not familiar
 with them, so I thought I would ask you GURU's here :)
 
 thank in advance!
 
 Steve
 
 
You could use the lpr command.  Info here :
http://www.marksanborn.net/linux/printing-from-the-linux-command-line/

Greg

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php