php-general Digest 9 Jan 2011 20:06:13 -0000 Issue 7124

2011-01-09 Thread php-general-digest-help
php-general Digest 9 Jan 2011 20:06:13 - Issue 7124 Topics (messages 310615 through 310624): Re: Validate Domain Name by Regular Express 310615 by: Ashley Sheridan 310616 by: Per Jessen 310617 by: tedd 310618 by: Daniel Brown 310619 by: Ashley

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

2011-01-09 Thread Ashley Sheridan
On Sun, 2011-01-09 at 11:44 +0800, WalkinRaven wrote: 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

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

2011-01-09 Thread Per Jessen
Tamara Temple wrote: 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]

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

2011-01-09 Thread tedd
At 12:15 PM +0100 1/9/11, Per Jessen wrote: Tamara Temple wrote: I'm wondering what mods to make for this now that unicode chars are allowed in domain names You're talking about IDNs ? The actual domain name is still US-ASCII, only when you decode punycode do you get UTF8 characters.

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

2011-01-09 Thread Daniel Brown
On Sun, Jan 9, 2011 at 11:58, tedd tedd.sperl...@gmail.com wrote: For example -- http://xn--19g.com -- is square-root dot com. In all browsers except Safari, PUNYCODE is shown in the address bar, but in Safari it's shown as ˆ.com Not sure if that's a typo or an issue in translation

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

2011-01-09 Thread Daniel Brown
On Sun, Jan 9, 2011 at 12:32, Ashley Sheridan a...@ashleysheridan.co.uk wrote: ^ is to the power of, not square root, which is √, which does translate to Tedds domain Thanks for the math lesson, professor, but I already knew that. ;-P My point is, and as you can see in the quoted

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

2011-01-09 Thread Donovan Brooke
Daniel Brown wrote: On Sun, Jan 9, 2011 at 11:58, teddtedd.sperl...@gmail.com wrote: For example -- http://xn--19g.com -- is square-root dot com. In all browsers except Safari, PUNYCODE is shown in the address bar, but in Safari it's shown as ˆ.com Not sure if that's a typo or an

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

2011-01-09 Thread Ashley Sheridan
On Sun, 2011-01-09 at 12:23 -0500, Daniel Brown wrote: On Sun, Jan 9, 2011 at 11:58, tedd tedd.sperl...@gmail.com wrote: For example -- http://xn--19g.com -- is square-root dot com. In all browsers except Safari, PUNYCODE is shown in the address bar, but in Safari it's shown as

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

2011-01-09 Thread Ashley Sheridan
On Sun, 2011-01-09 at 12:38 -0500, Daniel Brown wrote: On Sun, Jan 9, 2011 at 12:32, Ashley Sheridan a...@ashleysheridan.co.uk wrote: ^ is to the power of, not square root, which is √, which does translate to Tedds domain Thanks for the math lesson, professor, but I already knew

[PHP] curl rtmp

2011-01-09 Thread Tontonq Tontonq
does cUrl supports rtmp protocol? if so is there any example? do we need enable different library? so if not can we save rtmp by curl? if not is there any other rtmp downloader that u know ?

Re: [PHP] curl rtmp

2011-01-09 Thread David Hutto
On Sun, Jan 9, 2011 at 2:58 PM, Tontonq Tontonq root...@gmail.com wrote: does cUrl supports rtmp protocol? if so is there any example? These are obvious by searching for the terms, which seem to be quite specific to have not found an answer in the search engines. do we need enable different

[PHP] gzdeflate and file_get_contents memory leak?

2011-01-09 Thread Ryan Reading
I have a download script that streams the contents of multiple files into a zip archive before passing it on the to browser to be downloaded.  The script uses file_get_contents() and gzdeflate() to loop over multiple files to create the archive.  Everything works fine, except I have noticed that