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 t...@marston-home.demon.co.uk wrote: On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: A rule of thumb is no more than 50

Re: [PHP] Re: Function size

2012-06-03 Thread Tim Streater
On 03 Jun 2012 at 10:02, Tony Marston tonymars...@hotmail.com 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

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 tonymars...@hotmail.com wrote: tamouse mailing lists wrote in message news:cahuc_t__sw-_yhrw4n4uqr-fa46+cebunzgehboaatrafla...@mail.gmail.com... There is a point: if you are

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 tijn...@gmail.com 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

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 surprising... I'm

Re: [PHP] cyberweaponry

2012-06-03 Thread Daniel P. Brown
On Jun 3, 2012 12:05 PM, Tedd Sperling t...@sperling.com 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

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 ogon...@gmail.com wrote: On Sat, 02 Jun 2012 21:35:28 +0200, Matijn Woudt tijn...@gmail.com 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

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

Re: [PHP] disabled cookies

2012-06-03 Thread Ashley Sheridan
Al n...@ridersite.org 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

Re: [PHP] disabled cookies

2012-06-03 Thread Matijn Woudt
On Sun, Jun 3, 2012 at 11:21 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Al n...@ridersite.org 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

Re: [PHP] disabled cookies

2012-06-03 Thread Ashley Sheridan
Matijn Woudt tijn...@gmail.com wrote: On Sun, Jun 3, 2012 at 11:21 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Al n...@ridersite.org 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

Re: [PHP] disabled cookies

2012-06-03 Thread Matijn Woudt
On Sun, Jun 3, 2012 at 11:26 PM, Matijn Woudt tijn...@gmail.com wrote: On Sun, Jun 3, 2012 at 11:21 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Al n...@ridersite.org wrote: Disabled cookies use to be a problem years ago.  What's your experience these days. I need it for my session

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

Re: [PHP] disabled cookies

2012-06-03 Thread Ashley Sheridan
Lester Caine les...@lsces.co.uk 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,

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

Re: [PHP] disabled cookies

2012-06-03 Thread Ashley Sheridan
Lester Caine les...@lsces.co.uk 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

[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: spanSomething, something end/span I know that the text ends 'end', but I don't know what the Something, something is. I am using preg_match as follows:

Re: [PHP] help with preg_match

2012-06-03 Thread Robert Williams
On Jun 3, 2012, at 17:28, Chris Purves ch...@northfolk.ca 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

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