Re: [PHP] PHPCaptcha / Securimage 2.0.2 - Authentication Bypass - SOS-11-007

2011-05-21 Thread Ashley Sheridan
Lists li...@senseofsecurity.com wrote: Sense of Security - Security Advisory - SOS-11-007 Release Date. 20-May-2011 Last Update.- Vendor Notification Date. 04-Apr-2011 Product.Securimage / PHPCaptcha Platform. PHP Affected

Re: [PHP] PHPCaptcha / Securimage 2.0.2 - Authentication Bypass - SOS-11-007

2011-05-21 Thread Andre Polykanine
Hello Lists, Sorry for my rude words but... there are already too many websites that either don't give us a possibility to get an audio file instead of those damned captcha images; there are lots of others (such as Msn) where the audio is too distorted to be heard. It's not my

[PHP] Re: Date validation

2011-05-21 Thread Geoff Lane
I'm posting here for completeness as I've now rolled my own date validator (code follows my sig). It allows almost all valid 'English' formats except ordinal day values (1st, 3rd, etc.) Because I'm in UK and writing for a UK audience, I've parsed ambiguous dates as d/m/y. Those writing for places

Re: [PHP] A Review Request

2011-05-21 Thread tedd
At 2:49 PM -0400 5/19/11, Joshua Kehn wrote: On May 19, 2011, at 2:44 PM, Andre Polykanine wrote: Hello Alex, Two (stupid?) questions: 1. Why PHP_SELF is better than SCRIPT_NAME? 2. Why strcmp() is better than just comparing? -- With best regards from Ukraine, Andre Skype:

[PHP] Script ID?

2011-05-21 Thread tedd
Hi gang: Okay, so,what's the best (i.e., most secure) way for your script to identify itself *IF* you plan on using that information later, such as the value in an action attribute in a form? For example, I was using: $self = basename($_SERVER['SCRIPT_NAME']); form name=my_form action=?php

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 3:11 PM, tedd t...@sperling.com wrote: Hi gang: Okay, so,what's the best (i.e., most secure) way for your script to identify itself *IF* you plan on using that information later, such as the value in an action attribute in a form? For example, I was using: $self =

RE: [PHP] Script ID?

2011-05-21 Thread admin
I use define('page1, 1); Richard L. Buskirk -Original Message- From: tedd [mailto:t...@sperling.com] Sent: Saturday, May 21, 2011 10:11 AM To: PHP General Subject: [PHP] Script ID? Hi gang: Okay, so,what's the best (i.e., most secure) way for your script to identify itself *IF*

Re: [PHP] Script ID?

2011-05-21 Thread Ashley Sheridan
On Sat, 2011-05-21 at 10:11 -0400, tedd wrote: Hi gang: Okay, so,what's the best (i.e., most secure) way for your script to identify itself *IF* you plan on using that information later, such as the value in an action attribute in a form? For example, I was using: $self =

RE: [PHP] Script ID?

2011-05-21 Thread admin
So sorry Tedd, I was typing away with the rest of that and after hitting send I notice all I sent was the define. define('PAGE_1', 1); I use define because sometimes I want o know what script included another and if that script does not have a defined value I do not allow it to run. Just

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 16:18, Stuart Dallas stu...@3ft9.com wrote: On Sat, May 21, 2011 at 3:11 PM, tedd t...@sperling.com wrote: Hi gang: Okay, so,what's the best (i.e., most secure) way for your script to identify itself *IF* you plan on using that information later, such as the value in an

[PHP] Object Query Language optimization

2011-05-21 Thread jean-baptiste verrey
hi folks, I'm writing an Object Query Language which is pretty simple, you do request such as *SELECT e.*,c.firstName * *FROM employee e * *JOIN contact c ON e* *WHERE e.id=*? (queries don't get much more complicated than that, you have multiple alias.fieldName in the select, then multiple

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 3:35 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 16:18, Stuart Dallas stu...@3ft9.com wrote: On Sat, May 21, 2011 at 3:11 PM, tedd t...@sperling.com wrote: Hi gang: Okay, so,what's the best (i.e., most secure) way for your script to identify

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 17:01, Stuart Dallas stu...@3ft9.com wrote: On Sat, May 21, 2011 at 3:35 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 16:18, Stuart Dallas stu...@3ft9.com wrote: On Sat, May 21, 2011 at 3:11 PM, tedd t...@sperling.com wrote: Hi gang: Okay, so,what's the

[PHP] Re: Script ID?

2011-05-21 Thread Al
On 5/21/2011 10:11 AM, tedd wrote: Hi gang: Okay, so,what's the best (i.e., most secure) way for your script to identify itself *IF* you plan on using that information later, such as the value in an action attribute in a form? For example, I was using: $self =

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 4:07 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 17:01, Stuart Dallas stu...@3ft9.com wrote: On Sat, May 21, 2011 at 3:35 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 16:18, Stuart Dallas stu...@3ft9.com wrote: On Sat, May 21, 2011

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 17:18, Stuart Dallas stu...@3ft9.com wrote: *snip* Again, this depends upon what your url scheme looks like - and without knowing that, there's simple no clue as to whether or not this is a good solution to the problem (though it might be a good solution to A problem).

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 4:24 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 17:18, Stuart Dallas stu...@3ft9.com wrote: *snip* Again, this depends upon what your url scheme looks like - and without knowing that, there's simple no clue as to whether or not this is a good

Re: [PHP] Script ID?

2011-05-21 Thread Ashley Sheridan
On Sat, 2011-05-21 at 16:34 +0100, Stuart Dallas wrote: On Sat, May 21, 2011 at 4:24 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 17:18, Stuart Dallas stu...@3ft9.com wrote: *snip* Again, this depends upon what your url scheme looks like - and without knowing that,

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 4:48 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sat, 2011-05-21 at 16:47 +0100, Stuart Dallas wrote: On Sat, May 21, 2011 at 4:42 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sat, 2011-05-21 at 16:34 +0100, Stuart Dallas wrote: On Sat,

Re: [PHP] Script ID?

2011-05-21 Thread Ashley Sheridan
On Sat, 2011-05-21 at 16:53 +0100, Stuart Dallas wrote: On Sat, May 21, 2011 at 4:48 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sat, 2011-05-21 at 16:47 +0100, Stuart Dallas wrote: On Sat, May 21, 2011 at 4:42 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 4:57 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 17:34, Stuart Dallas stu...@3ft9.com wrote: On Sat, May 21, 2011 at 4:24 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 17:18, Stuart Dallas stu...@3ft9.com wrote: *snip* Again,

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 5:02 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sat, 2011-05-21 at 16:53 +0100, Stuart Dallas wrote: On Sat, May 21, 2011 at 4:48 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sat, 2011-05-21 at 16:47 +0100, Stuart Dallas wrote: On Sat,

[PHP] a Debate here - How can you check a if a file is a UTF-8 without the BOM using PHP ?

2011-05-21 Thread Eli Orr (Office)
Dear PHP Gurus, I have a debate on the following please let me know what is true / false. I'am using a PHP function *is_UTF_8_file ($file_name) *that I've found as part of my PHP 5.3 installation. This function checks if the file start with the 3 UTF-8 BOM bytes. However another guy told me

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 18:05, Stuart Dallas stu...@3ft9.com wrote: On Sat, May 21, 2011 at 4:57 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 17:34, Stuart Dallas stu...@3ft9.com wrote: On Sat, May 21, 2011 at 4:24 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 17:18,

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 5:14 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 18:05, Stuart Dallas stu...@3ft9.com wrote: On Sat, May 21, 2011 at 4:57 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 17:34, Stuart Dallas stu...@3ft9.com wrote: On Sat, May 21, 2011

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 18:26, Stuart Dallas stu...@3ft9.com wrote: *snip* http://en.wikipedia.org/wiki/Defensive_programming You do things your way and I'll do things my way. Best of luck to you. Thank you for your condescending tone. Best of luck to you too. Regards Peter -- hype WWW: plphp.dk /

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 18:42, Stuart Dallas stu...@3ft9.com wrote: On Sat, May 21, 2011 at 5:33 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 18:26, Stuart Dallas stu...@3ft9.com wrote: *snip* http://en.wikipedia.org/wiki/Defensive_programming You do things your way and I'll do

Re: [PHP] Object Query Language optimization

2011-05-21 Thread jean-baptiste verrey
hi, I often use SQL that is far, far more complex than this. well, this is why my OQL is pretty simple, it does not intend to do any crazy stuff that you can do with SQL (as I can load objects from SQL as well) I had a look at other ORM, and the problem is that some are extremely complicated

Re: [PHP] a Debate here - How can you check a if a file is a UTF-8 without the BOM using PHP ?

2011-05-21 Thread Adam Richardson
On Sat, May 21, 2011 at 12:10 PM, Eli Orr (Office) eli@logodial.comwrote: Dear PHP Gurus, I have a debate on the following please let me know what is true / false. I'am using a PHP function *is_UTF_8_file ($file_name) *that I've found as part of my PHP 5.3 installation. This function

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 5:33 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 18:26, Stuart Dallas stu...@3ft9.com wrote: *snip* http://en.wikipedia.org/wiki/Defensive_programming You do things your way and I'll do things my way. Best of luck to you. Thank you for your

Re: [PHP] Script ID?

2011-05-21 Thread Tamara Temple
On May 21, 2011, at 9:11 AM, tedd wrote: Hi gang: Okay, so,what's the best (i.e., most secure) way for your script to identify itself *IF* you plan on using that information later, such as the value in an action attribute in a form? For example, I was using: $self =

Re: [PHP] Script ID?

2011-05-21 Thread Stuart Dallas
On Sat, May 21, 2011 at 6:00 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 18:42, Stuart Dallas stu...@3ft9.com wrote: On Sat, May 21, 2011 at 5:33 PM, Peter Lind peter.e.l...@gmail.com wrote: On 21 May 2011 18:26, Stuart Dallas stu...@3ft9.com wrote: *snip*

Re: [PHP] Script ID?

2011-05-21 Thread Adam Richardson
On Sat, May 21, 2011 at 10:11 AM, tedd t...@sperling.com wrote: Hi gang: Okay, so,what's the best (i.e., most secure) way for your script to identify itself *IF* you plan on using that information later, such as the value in an action attribute in a form? For example, I was using: $self

Re: [PHP] Script ID?

2011-05-21 Thread tedd
At 6:29 PM +0100 5/21/11, Stuart Dallas wrote: On Sat, May 21, 2011 at 6:00 PM, Peter Lind mailto:peter.e.l...@gmail.competer.e.l...@gmail.com wrote: -snip- This was fun... we should do it again sometime! ;) No, this wasn't fun. As I said before, is email is a bad way to communicate. But

[PHP] Defensive Programming

2011-05-21 Thread tedd
Hi Gang: A word about: http://en.wikipedia.org/wiki/Defensive_programming Anyone read the classic CHAOS by Gleick? The story of Mandelbrot is an interesting one where (as I remember it, I could be wrong) he was hired to do find a Defensive solution to telephone equipment failure. That

Re: [PHP] A Review Request

2011-05-21 Thread Alex
Yep, and it comes in handy, especially in school, lol, in advanced algorithms and datastructures, I once submitted a project assignment that was 5 lines long, and instead of figuring out anagrams, strcmp was very helpful :) Sent from my Verizon Wireless 4GLTE smartphone - Reply message

Re: [PHP] A Review Request

2011-05-21 Thread Robert Cummings
On 11-05-21 09:26 AM, tedd wrote: At 2:49 PM -0400 5/19/11, Joshua Kehn wrote: On May 19, 2011, at 2:44 PM, Andre Polykanine wrote: Hello Alex, Two (stupid?) questions: 1. Why PHP_SELF is better than SCRIPT_NAME? 2. Why strcmp() is better than just comparing? -- With best