RE: [PHP] help with preg_match

2012-06-03 Thread admin
-Original Message- From: Chris Purves [mailto:ch...@northfolk.ca] Sent: Sunday, June 03, 2012 8:26 PM To: php-general General Subject: [PHP] help with preg_match Hello, I am trying to use preg_match to match something from an html file. Within the html file is some text that looks lik

Re: [PHP] help with preg_match

2012-06-03 Thread Robert Williams
On Jun 3, 2012, at 17:28, "Chris Purves" wrote: > I know that the text ends 'end', but I don't know what the Something, > something is. I am using preg_match as follows: > > preg_match('/[^>]*end/',$curl_response,$matches); > > I want to match 'end' and everything before it that is not '>'. You

[PHP] help with preg_match

2012-06-03 Thread Chris Purves
Hello, I am trying to use preg_match to match something from an html file. Within the html file is some text that looks like: Something, something end I know that the text ends 'end', but I don't know what the Something, something is. I am using preg_match as follows: preg_match('/[^>]*en

Re: [PHP] disabled cookies

2012-06-03 Thread Ashley Sheridan
Lester Caine wrote: >Ashley Sheridan wrote: >> How is Google Chrome a bigger security risk than the other popular >browsers, Fx and IE? >> >> I was under the impression it was more secure than either of those. > >License Conditions ... They may have removed the original landgrab >section, but >

Re: [PHP] disabled cookies

2012-06-03 Thread Lester Caine
Ashley Sheridan wrote: How is Google Chrome a bigger security risk than the other popular browsers, Fx and IE? I was under the impression it was more secure than either of those. License Conditions ... They may have removed the original landgrab section, but there is still a potential for Go

Re: [PHP] disabled cookies

2012-06-03 Thread Ashley Sheridan
Lester Caine wrote: >Matijn Woudt wrote: >> BTW, There's a website [1] that has all the information and even a >> tool for checking what your site does with cookies. >> >> - Matijn >> >> [1]http://www.cookielaw.org/ > >Which fails at the first security hurdle! >It requires Google Chrome, which

Re: [PHP] disabled cookies

2012-06-03 Thread Lester Caine
Matijn Woudt wrote: BTW, There's a website [1] that has all the information and even a tool for checking what your site does with cookies. - Matijn [1]http://www.cookielaw.org/ Which fails at the first security hurdle! It requires Google Chrome, which is bigger black hole as far as my custome

Re: [PHP] disabled cookies

2012-06-03 Thread Matijn Woudt
On Sun, Jun 3, 2012 at 11:26 PM, Matijn Woudt wrote: > On Sun, Jun 3, 2012 at 11:21 PM, Ashley Sheridan > wrote: >> >> >> Al wrote: >> >>>Disabled cookies use to be a problem years ago.  What's your experience >>>these days. >>> >>>I need it for my session ID. As I read the docs, the old method

Re: [PHP] disabled cookies

2012-06-03 Thread Ashley Sheridan
Matijn Woudt wrote: >On Sun, Jun 3, 2012 at 11:21 PM, Ashley Sheridan > wrote: >> >> >> Al wrote: >> >>>Disabled cookies use to be a problem years ago.  What's your >experience >>>these days. >>> >>>I need it for my session ID. As I read the docs, the old method of >>>appending it >>>to the UR

Re: [PHP] disabled cookies

2012-06-03 Thread Matijn Woudt
On Sun, Jun 3, 2012 at 11:21 PM, Ashley Sheridan wrote: > > > Al wrote: > >>Disabled cookies use to be a problem years ago.  What's your experience >>these days. >> >>I need it for my session ID. As I read the docs, the old method of >>appending it >>to the URL is a security issue. >> >>I can obv

Re: [PHP] disabled cookies

2012-06-03 Thread Ashley Sheridan
Al wrote: >Disabled cookies use to be a problem years ago. What's your experience >these days. > >I need it for my session ID. As I read the docs, the old method of >appending it >to the URL is a security issue. > >I can obviously save the ID in a temp file which can be read by all the >pages

[PHP] disabled cookies

2012-06-03 Thread Al
Disabled cookies use to be a problem years ago. What's your experience these days. I need it for my session ID. As I read the docs, the old method of appending it to the URL is a security issue. I can obviously save the ID in a temp file which can be read by all the pages needing it. Al..

Re: [PHP] Using default argument values in the middle of the argument list

2012-06-03 Thread Matijn Woudt
On Sun, Jun 3, 2012 at 4:48 PM, oliver gondža wrote: > On Sat, 02 Jun 2012 21:35:28 +0200, Matijn Woudt wrote: > >> It does not state it works only at the end of the list, it states that >> it only makes sense to use it at the end of the argument list to be >> able to call the function with less

Re: [PHP] cyberweaponry

2012-06-03 Thread Daniel P. Brown
On Jun 3, 2012 12:05 PM, "Tedd Sperling" wrote: > > On May 31, 2012, at 7:45 PM, Ross McKay wrote: > > >> He said that this was unusual because typically such viruses are > >> written in languages like Ruby-on-Rails and such. > > > > Um, really? I very much doubt that. AFAIK, most true viruses are

Re: [PHP] cyberweaponry

2012-06-03 Thread Tedd Sperling
On May 31, 2012, at 7:45 PM, Ross McKay wrote: > On Thu, 31 May 2012 13:21:07 -0400, Tedd Sperling wrote: > >> [...] >> I watched a interview today where an security expert claimed that >> the Flame Virus was written in a scripted language named lua >> (http://www.lua.org/). > > That's surpris

Re: [PHP] Using default argument values in the middle of the argument list

2012-06-03 Thread oliver gondža
On Sat, 02 Jun 2012 21:35:28 +0200, Matijn Woudt wrote: It does not state it works only at the end of the list, it states that it only makes sense to use it at the end of the argument list to be able to call the function with less arguments. In case you want to use it as suggested in [2], you c

Re: [PHP] Re: Function size

2012-06-03 Thread Tony Marston
"Tim Streater" wrote in message news:d0.7c.45755.25a3b...@pb1.pair.com... On 03 Jun 2012 at 10:02, Tony Marston wrote: "tamouse mailing lists" wrote in message news:cahuc_t__sw-_yhrw4n4uqr-fa46+cebunzgehboaatrafla...@mail.gmail.com... There is a point: if you are unfamiliar with code, wa

Re: [PHP] Re: Function size

2012-06-03 Thread Tim Streater
On 03 Jun 2012 at 10:02, Tony Marston wrote: > "tamouse mailing lists" wrote in message > news:cahuc_t__sw-_yhrw4n4uqr-fa46+cebunzgehboaatrafla...@mail.gmail.com... >> There is a point: if you are unfamiliar with code, wading through >> screens and screens of a function to find things like blo

Re: [PHP] Re: Function size

2012-06-03 Thread Tony Marston
"tamouse mailing lists" wrote in message news:cahuc_t__sw-_yhrw4n4uqr-fa46+cebunzgehboaatrafla...@mail.gmail.com... On Tue, May 29, 2012 at 2:52 AM, Tony Marston wrote: On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: A rule of thumb is no more than 50 lines per function, most much