Re: [PHP] Help: Validate Domain Name by Regular Express

2011-01-08 Thread WalkinRaven
Right, RFC 1034 allow valid endless . parts, till the sum length is over 255. On 01/09/2011 01:21 AM, TR Shaw wrote: On Jan 8, 2011, at 12:09 PM, Ashley Sheridan wrote: On Sat, 2011-01-08 at 16:55 +0800, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according

Re: [PHP] Help: Validate Domain Name by Regular Express

2011-01-08 Thread WalkinRaven
On 01/09/2011 01:09 AM, Ashley Sheridan wrote: On Sat, 2011-01-08 at 16:55 +0800, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9]) | [a-z]

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-08 Thread Tamara Temple
On Jan 8, 2011, at 2:22 PM, Al wrote: On 1/8/2011 3:55 AM, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9]) | [a-z] (?:[a-z]|[0-9]|\-){1,61} (?:[a-z]|[0-9]) ) # O

[PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-08 Thread Al
On 1/8/2011 3:55 AM, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9]) | [a-z] (?:[a-z]|[0-9]|\-){1,61} (?:[a-z]|[0-9]) ) # One label (?:\.(?1))*+ # More labels \.? #

Re: [PHP] Help: Validate Domain Name by Regular Express

2011-01-08 Thread TR Shaw
On Jan 8, 2011, at 12:09 PM, Ashley Sheridan wrote: > On Sat, 2011-01-08 at 16:55 +0800, WalkinRaven wrote: > >> PHP 5.3 PCRE >> >> Regular Express to match domain names format according to RFC 1034 - >> DOMAIN NAMES - CONCEPTS AND FACILITIES >> >> /^ >> ( >> [a-z] | >> [a

Re: [PHP] Help: Validate Domain Name by Regular Express

2011-01-08 Thread Ashley Sheridan
On Sat, 2011-01-08 at 16:55 +0800, WalkinRaven wrote: > PHP 5.3 PCRE > > Regular Express to match domain names format according to RFC 1034 - > DOMAIN NAMES - CONCEPTS AND FACILITIES > > /^ > ( >[a-z] | >[a-z] (?:[a-z]|[0-9]) | >[a-z] (?:[a-z]|[0-9]|\-){1,61} (?:[a-z

Re: [PHP] Command line PHP

2011-01-08 Thread Daniel Brown
On Sat, Jan 8, 2011 at 00:23, Larry Garfield wrote: > 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

Re: [PHP] Command line PHP

2011-01-08 Thread Daniel Brown
On Sat, Jan 8, 2011 at 07:25, TR Shaw wrote: > > Sorry, David I should not reply quickly when I have a cold but again its all > pretty similar. Here it is on unix/linux. > > PHP: > > $word = "hello"; > exec("say \"$word\""); > > Bash: > > word="hello" > say "$word" -- Network Infrastructure

Re: [PHP] Command line PHP

2011-01-08 Thread Lester Caine
David Hutto wrote: I'm with some of the others above on using Python. Writing a command line app is about as simple as: snip I think of PHP as more browser, than desktop app/webapp. The point I was trying to make was one where there are two paths to doing the same job ... Example Thumbnail

Re: [PHP] Command line PHP

2011-01-08 Thread David Hutto
Like i said, my introduction to php is browser,and desktop app is python, but I will try php in the command line out. 1) set a variable 2) call an external program with the variable as an argument this is something I recognize very well:) -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Command line PHP

2011-01-08 Thread TR Shaw
On Jan 7, 2011, at 8:50 PM, David Hutto wrote: > On Fri, Jan 7, 2011 at 8:44 PM, TR Shaw wrote: >> >> On Jan 7, 2011, at 8:36 PM, David Hutto wrote: >> >>> I'm with some of the others above on using Python. Writing a command >>> line app is about as simple as: >>> >>> import subprocess >>> wo

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

2011-01-08 Thread Peter Lind
On Jan 8, 2011 9:53 AM, "David Robley" wrote: > > Michelle Konzack wrote: > > > 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' ]---

[PHP] Help: Validate Domain Name by Regular Express

2011-01-08 Thread WalkinRaven
PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9]) | [a-z] (?:[a-z]|[0-9]|\-){1,61} (?:[a-z]|[0-9])) # One label (?:\.(?1))*+# More l

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

2011-01-08 Thread David Robley
Michelle Konzack wrote: > 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-