[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 fo

Re: [PHP] curl & rtmp

2011-01-09 Thread David Hutto
On Sun, Jan 9, 2011 at 2:58 PM, Tontonq Tontonq 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 library? so if not

[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] 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 > 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 > >

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

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, tedd 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 while

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 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 text from my email, that

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 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 while the email was

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

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

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

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