[PHP] Re: Re: Re: PHP extension for equivalen of "getent"?

2011-01-07 Thread Michelle Konzack
Hello David Robley, Am 2011-01-08 16:25:38, hacktest Du folgendes herunter: > You might find http://xchm.sourceforge.net/ useful :-) [ 'apt-cache policy xchm' ]- xchm: Installiert: 2:1.14-4 Kandidat: 2:1.14-4 Versions-Tabelle: *** 2:1.14-4 0

[PHP] Re: Re: Re: PHP extension for equivalen of "getent"?

2011-01-07 Thread David Robley
Michelle Konzack wrote: > Hello Tommy Pham, > > Am 2011-01-07 19:31:17, hacktest Du folgendes herunter: >> There's the chm download for the times when you're unplugged :) > > I was never able to open ths chm files under Debian > > Thanks, Greetings and nice Day/Evening > Michelle Konzack >

Re: [PHP] Command line PHP

2011-01-07 Thread David Hutto
I could go yoda, but suffice it to say, "From The Language Speaks The Soul Of The Man's Design". -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Command line PHP

2011-01-07 Thread Larry Garfield
On Friday, January 07, 2011 9:34:42 pm David Hutto wrote: > Which yielded this as the first result: > > > http://php.net/manual/en/features.commandline.php As noted in my original email, I find the native SAPI clunky and difficult to work with. Hence I was looking for something more usable an

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 wrote: > On Thu, Jan 6, 2011 at 22:55, Jimmy Stewpot > 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 suggestion

[PHP] Re: Re: Re: PHP extension for equivalen of "getent"?

2011-01-07 Thread Michelle Konzack
Hello Tommy Pham, Am 2011-01-07 19:31:17, hacktest Du folgendes herunter: > There's the chm download for the times when you're unplugged :) I was never able to open ths chm files under Debian Thanks, Greetings and nice Day/Evening Michelle Konzack -- # Debian GNU/Linux

Re: [PHP] Command line PHP

2011-01-07 Thread David Hutto
There have been a lot of responses, but this might be the best place to start: http://www.google.com/search?client=ubuntu&channel=fs&q=command+line+PHP+application.&ie=utf-8&oe=utf-8 Which yielded this as the first result: http://php.net/manual/en/features.commandline.php -- PHP General Mail

RE: [PHP] Re: Re: PHP extension for equivalen of "getent"?

2011-01-07 Thread Tommy Pham
> -Original Message- > From: Michelle Konzack [mailto:linux4miche...@tamay-dogan.net] > Sent: Friday, January 07, 2011 7:20 PM > To: php-general@lists.php.net > Subject: [PHP] Re: Re: PHP extension for equivalen of "getent"? > > Hello Tommy Pham, > > Am 2011-01-07 17:38:26, hacktest Du fo

[PHP] Re: Re: PHP extension for equivalen of "getent"?

2011-01-07 Thread Michelle Konzack
Hello Tommy Pham, Am 2011-01-07 17:38:26, hacktest Du folgendes herunter: > The only book I use for reference is the official online. You'll never be > outdated. ;) :-) You are right and a TabetPC + GSM-Card will help... But if you are Off-Line, an Hadcope ofa command/function reference would

Re: [PHP] Newbie Question

2011-01-07 Thread David Hutto
On Fri, Jan 7, 2011 at 2:33 PM, tedd wrote: > At 2:16 AM -0500 1/7/11, Daniel Brown wrote: >> >> On Thu, Jan 6, 2011 at 23:09, Bill Guion wrote: >>> >>>  Fogging must be a REAL OLD Fashioned term. Please clarify. >> >>    It was originally written before man invented the letter 'L', Bill. > > No,

RE: [PHP] Re: PHP extension for equivalen of "getent"?

2011-01-07 Thread Tommy Pham
> -Original Message- > From: Michelle Konzack [mailto:linux4miche...@tamay-dogan.net] > Sent: Friday, January 07, 2011 2:56 AM > To: php-general@lists.php.net > Subject: [PHP] Re: PHP extension for equivalen of "getent"? > > Hello Michael Shadle, > > Am 2011-01-07 00:35:38, hacktest Du fo

Re: [PHP] Command line PHP

2011-01-07 Thread David Hutto
I'm with some of the others above on using Python. Writing a command line app is about as simple as: import subprocess word = 'hello' self.espeak = subprocess.Popen(['espeak', word], stdout = subprocess.PIPE).communicate()[0] I think of PHP as more browser, than desktop app/webapp. -- PHP Gener

Re: [PHP] Command line PHP

2011-01-07 Thread Lester Caine
Joshua Kehn wrote: why bother learning 2 languages when 1 will suit most needs perfectly? for most folks who work with the web and a typical deployment environment like a linux server, the second language of choice most likely would be a client side one like javascript. > You can't say that

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
On Fri, Jan 7, 2011 at 2:52 PM, tedd wrote: > At 1:24 PM -0700 1/7/11, Nathan Nobbe wrote: > >> On Fri, Jan 7, 2011 at 12:53 PM, tedd < >> tedd.sperl...@gmail.com> wrote: >> much of the gripe comparing php to python >> >> -nathan >> > > I try to stay away from snak

Re: [PHP] Command line PHP

2011-01-07 Thread tedd
At 3:05 PM -0500 1/7/11, Robert Cummings wrote: Is the winner JavaScript? *ducks and runs* Rob. Careful or I'll have to fog you as well. :-) Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] Command line PHP

2011-01-07 Thread tedd
At 1:24 PM -0700 1/7/11, Nathan Nobbe wrote: On Fri, Jan 7, 2011 at 12:53 PM, tedd <tedd.sperl...@gmail.com> wrote: much of the gripe comparing php to python -nathan I try to stay away from snakes. Cheers, tedd -- --- http://sperling.com/ -- PHP General

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

2011-01-07 Thread Daniel Brown
On Thu, Jan 6, 2011 at 22:55, Jimmy Stewpot 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 enli

Re: [PHP] Command line PHP

2011-01-07 Thread Nicholas Kell
On Jan 7, 2011, at 1:34 PM, TR Shaw wrote: > > On Jan 7, 2011, at 12:08 PM, Nicholas Kell wrote: > >> >> On Jan 7, 2011, at 11:01 AM, Joshua Kehn wrote: >> >>> On Jan 7, 2011, at 11:55 AM, la...@garfieldtech.com wrote: >>> Hi folks. I have a project coming up that will involve writing

Re: [PHP] Command line PHP

2011-01-07 Thread Robert Cummings
On 11-01-07 03:24 PM, Nathan Nobbe wrote: much of the gripe comparing php to python over the years is slowly fading with the advent of new features of php, most notably closures. once traits are available im sure the multiple inheritance that python offers will be less of an advantage over php's

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
On Fri, Jan 7, 2011 at 12:53 PM, tedd wrote: > At 12:16 PM -0700 1/7/11, Nathan Nobbe wrote: > >> On Fri, Jan 7, 2011 at 11:54 AM, Joshua Kehn wrote: >> >> Why bother learning other languages? Is this a joke? Why should someone >>> stop learning *ever?** *Having a mastery of multiple language

Re: [PHP] Command line PHP

2011-01-07 Thread Robert Cummings
On 11-01-07 02:53 PM, tedd wrote: At 12:16 PM -0700 1/7/11, Nathan Nobbe wrote: On Fri, Jan 7, 2011 at 11:54 AM, Joshua Kehn wrote: Why bother learning other languages? Is this a joke? Why should someone stop learning *ever?** *Having a mastery of multiple languages can only enhance you

Re: [PHP] Command line PHP

2011-01-07 Thread tedd
At 12:16 PM -0700 1/7/11, Nathan Nobbe wrote: On Fri, Jan 7, 2011 at 11:54 AM, Joshua Kehn wrote: Why bother learning other languages? Is this a joke? Why should someone stop learning *ever?** *Having a mastery of multiple languages can only enhance you. No, it's not a joke. The idea is

Re: [PHP] Command line PHP

2011-01-07 Thread tedd
At 1:54 PM -0500 1/7/11, Joshua Kehn wrote: Why should someone stop learning ever? Because my head fills up. I have to wait until I forget something before I can learn something new. The up-side is that I'm learning something new almost every day now. Cheers, tedd -- --- http://sperli

Re: [PHP] Command line PHP

2011-01-07 Thread Robert Cummings
On 11-01-07 02:33 PM, Robert Cummings wrote: On 11-01-07 11:55 AM, la...@garfieldtech.com wrote: Hi folks. I have a project coming up that will involve writing a non-trivial command line PHP application. Most of it will be nice and abstracted and standalone and all of that jazz, but it will ne

Re: [PHP] Command line PHP

2011-01-07 Thread tedd
At 11:48 AM -0700 1/7/11, Nathan Nobbe wrote: why bother learning 2 languages when 1 will suit most needs perfectly? for most folks who work with the web and a typical deployment environment like a linux server, the second language of choice most likely would be a client side one like javascrip

Re: [PHP] Command line PHP

2011-01-07 Thread Ashley Sheridan
On Fri, 2011-01-07 at 11:31 -0800, David Harkness wrote: > On Fri, Jan 7, 2011 at 10:41 AM, la...@garfieldtech.com < > la...@garfieldtech.com> wrote: > > > "Application" is perhaps a misnomer. I'm not looking at rewriting Emacs or > > anything. Just some batch processing that would get run as:

Re: [PHP] Command line PHP

2011-01-07 Thread TR Shaw
On Jan 7, 2011, at 12:08 PM, Nicholas Kell wrote: > > On Jan 7, 2011, at 11:01 AM, Joshua Kehn wrote: > >> On Jan 7, 2011, at 11:55 AM, la...@garfieldtech.com wrote: >> >>> Hi folks. I have a project coming up that will involve writing a >>> non-trivial command line PHP application. Most of

Re: [PHP] Newbie Question

2011-01-07 Thread tedd
At 2:16 AM -0500 1/7/11, Daniel Brown wrote: On Thu, Jan 6, 2011 at 23:09, Bill Guion wrote: Fogging must be a REAL OLD Fashioned term. Please clarify. It was originally written before man invented the letter 'L', Bill. No, it was the predecessor to water-boarding. Cheers, tedd --

Re: [PHP] Command line PHP

2011-01-07 Thread Robert Cummings
On 11-01-07 11:55 AM, la...@garfieldtech.com wrote: Hi folks. I have a project coming up that will involve writing a non-trivial command line PHP application. Most of it will be nice and abstracted and standalone and all of that jazz, but it will need to do command line interation. I'm not sur

Re: [PHP] Command line PHP

2011-01-07 Thread David Harkness
On Fri, Jan 7, 2011 at 10:41 AM, la...@garfieldtech.com < la...@garfieldtech.com> wrote: > "Application" is perhaps a misnomer. I'm not looking at rewriting Emacs or > anything. Just some batch processing that would get run as: > > php myscript.php --config=foo.xml --setting-1=stuff For this I

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
On Jan 7, 2011, at 1:41 PM, la...@garfieldtech.com wrote: > "Application" is perhaps a misnomer. I'm not looking at rewriting Emacs or > anything. Just some batch processing that would get run as: > > php myscript.php --config=foo.xml --setting-1=stuff > > And then it will run off and move a

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
On Fri, Jan 7, 2011 at 11:54 AM, Joshua Kehn wrote: > On Jan 7, 2011, at 1:48 PM, Nathan Nobbe wrote: > > shrug, you must not be too familiar with php then. 9 times out of 10 it's > the natural, perfect choice for a cli program. there are situations where > you get past what php is ideal for on

Re: [PHP] Command line PHP

2011-01-07 Thread Robert Cummings
On 11-01-07 01:31 PM, Joshua Kehn wrote: On Jan 7, 2011, at 12:34 PM, Daniel Brown wrote: On Fri, Jan 7, 2011 at 12:18, Joshua Kehn wrote: Using another language more suited towards CLI / standalone (non-web) development would be easier. PHP at it's core is a templating language. I don't t

Re: [PHP] Command line PHP

2011-01-07 Thread David Harkness
On Fri, Jan 7, 2011 at 10:31 AM, Joshua Kehn wrote: > My apologies. I just view PHP as a perfected web language, due to it's > templating nature, while using it for other things (scripts, utilities, > cron) is a misuse in my opinion. > Even if you are proficient in more "CLI-appropriate" languag

Re: [PHP] Command line PHP

2011-01-07 Thread la...@garfieldtech.com
On 1/7/11 11:08 AM, Nicholas Kell wrote: On Jan 7, 2011, at 11:01 AM, Joshua Kehn wrote: On Jan 7, 2011, at 11:55 AM, la...@garfieldtech.com wrote: Hi folks. I have a project coming up that will involve writing a non-trivial command line PHP application. Most of it will be nice and abstra

Re: [PHP] Command line PHP

2011-01-07 Thread Daniel Brown
On Fri, Jan 7, 2011 at 13:31, Joshua Kehn wrote: > > My apologies. I just view PHP as a perfected web language, due to it's > templating nature, while using it for other things (scripts, utilities, > cron) is a misuse in my opinion. No one ever needs to apologize for their opinion, Josh, no w

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
On Jan 7, 2011, at 1:53 PM, Ashley Sheridan wrote: > There's no real reason why you shouldn't use PHP for cli apps, it has a lot > of features specifically intended for it even. I've found it to be fast > enough for my needs, it's familiar, and I don't need to compile an app every > time I make

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
On Jan 7, 2011, at 1:48 PM, Nathan Nobbe wrote: > shrug, you must not be too familiar with php then. 9 times out of 10 it's > the natural, perfect choice for a cli program. there are situations where > you get past what php is ideal for on the cli, typically when you get into > heavy forking

Re: [PHP] Command line PHP

2011-01-07 Thread Ashley Sheridan
On Fri, 2011-01-07 at 13:31 -0500, Joshua Kehn wrote: > On Jan 7, 2011, at 12:34 PM, Daniel Brown wrote: > > > On Fri, Jan 7, 2011 at 12:18, Joshua Kehn wrote: > >> > >> Using another language more suited towards CLI / standalone (non-web) > >> development would be easier. PHP at it's core is

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
On Fri, Jan 7, 2011 at 11:31 AM, Joshua Kehn wrote: > On Jan 7, 2011, at 12:34 PM, Daniel Brown wrote: > > > On Fri, Jan 7, 2011 at 12:18, Joshua Kehn wrote: > >> > >> Using another language more suited towards CLI / standalone (non-web) > development would be easier. PHP at it's core is a templ

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
On Jan 7, 2011, at 12:34 PM, Daniel Brown wrote: > On Fri, Jan 7, 2011 at 12:18, Joshua Kehn wrote: >> >> Using another language more suited towards CLI / standalone (non-web) >> development would be easier. PHP at it's core is a templating language. I >> don't think it is as suited as say Pyt

Re: [PHP] Command line PHP

2011-01-07 Thread Andy McKenzie
On Fri, Jan 7, 2011 at 11:55 AM, la...@garfieldtech.com wrote: > Hi folks.  I have a project coming up that will involve writing a > non-trivial command line PHP application.  Most of it will be nice and > abstracted and standalone and all of that jazz, but it will need to do > command line intera

Re: [PHP] Command line PHP

2011-01-07 Thread Daniel Brown
On Fri, Jan 7, 2011 at 12:18, Joshua Kehn wrote: > > Using another language more suited towards CLI / standalone (non-web) > development would be easier. PHP at it's core is a templating language. I > don't think it is as suited as say Python for developing standalone > applications. One m

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
On Jan 7, 2011, at 12:12 PM, Daniel Brown wrote: > On Fri, Jan 7, 2011 at 12:01, Joshua Kehn wrote: >> >> Why are you writing a command line application in PHP? I would think that is >> starting off on a very wrong foot. > >I would not be exaggerating to say that I've written over a > thou

Re: [PHP] Command line PHP

2011-01-07 Thread a...@ashleysheridan.co.uk
(sorry for top post, still not worked out how not to on phone) Can you not just code it like you normally would any app that doesn't use a framework? I've been writing some cli data importers at work. Basic really, with only classes used that I need, no framework needed (its very simple) and al

Re: [PHP] Command line PHP

2011-01-07 Thread Daniel Brown
On Fri, Jan 7, 2011 at 12:01, Joshua Kehn wrote: > > Why are you writing a command line application in PHP? I would think that is > starting off on a very wrong foot. I would not be exaggerating to say that I've written over a thousand command line applications in PHP since about 2003. For

Re: [PHP] Command line PHP

2011-01-07 Thread Nicholas Kell
On Jan 7, 2011, at 11:01 AM, Joshua Kehn wrote: > On Jan 7, 2011, at 11:55 AM, la...@garfieldtech.com wrote: > >> Hi folks. I have a project coming up that will involve writing a >> non-trivial command line PHP application. Most of it will be nice and >> abstracted and standalone and all of

Re: [PHP] Command line PHP

2011-01-07 Thread Daniel Brown
On Fri, Jan 7, 2011 at 11:55, la...@garfieldtech.com wrote: > Hi folks.  I have a project coming up that will involve writing a > non-trivial command line PHP application.  Most of it will be nice and > abstracted and standalone and all of that jazz, but it will need to do > command line interatio

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
On Jan 7, 2011, at 11:55 AM, la...@garfieldtech.com wrote: > Hi folks. I have a project coming up that will involve writing a non-trivial > command line PHP application. Most of it will be nice and abstracted and > standalone and all of that jazz, but it will need to do command line > interat

[PHP] Command line PHP

2011-01-07 Thread la...@garfieldtech.com
Hi folks. I have a project coming up that will involve writing a non-trivial command line PHP application. Most of it will be nice and abstracted and standalone and all of that jazz, but it will need to do command line interation. I'm not sure yet if it will be interactive or if I just need

RE: [PHP] Newbie Question

2011-01-07 Thread Jay Blanchard
{snip] ...stuff about tedd... [/snip] Thank goodness there is someone on the list much older than me. [snip] >PS: It's not Friday yet. [/snip] It is now. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP extension for equivalen of "getent"?

2011-01-07 Thread Michelle Konzack
Hello Michael Shadle, Am 2011-01-07 00:35:38, hacktest Du folgendes herunter: > http://php.net/posix Grmpf! Time to get a new PHP Book... 2002 is rather old! Thanks, Greetings and nice Day/Evening Michelle Konzack -- # Debian GNU/Linux Consultant #

Re: [PHP] PHP extension for equivalen of "getent"?

2011-01-07 Thread Michael Shadle
On Fri, Jan 7, 2011 at 12:30 AM, Michelle Konzack wrote: > Does someone know, whether there is a PHP  extension  like  "getenv"  or > something which give the passwd fields back? http://php.net/posix -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP] PHP extension for equivalen of "getent"?

2011-01-07 Thread Michelle Konzack
Hello and good morning, I use php-pam for authentication but nowI have the need for something which give me the ${HOME} directory back. Does someone know, whether there is a PHP extension like "getenv" or something which give the passwd fields back? Note: I am using libpam-pgsql and lib