On Mon, May 23, 2011 at 5:14 PM, Daevid Vincent wrote:
>> -Original Message-
>> From: Eric Butera [mailto:eric.but...@gmail.com]
>> Sent: Friday, May 20, 2011 2:25 PM
>> To: PHP
>> Subject: Re: [PHP] observer pattern
>>
>> [whoops didn't hit reply-all]
>>
>> On Wed, May 18, 2011 at 5:18 AM
> -Original Message-
> From: Eric Butera [mailto:eric.but...@gmail.com]
> Sent: Friday, May 20, 2011 2:25 PM
> To: PHP
> Subject: Re: [PHP] observer pattern
>
> [whoops didn't hit reply-all]
>
> On Wed, May 18, 2011 at 5:18 AM, Ken Guest wrote:
> > Lo,
> >
> > so, I'm wondering - how man
On Mon, May 23, 2011 at 6:29 AM, Simon Hilz wrote:
> i was wondering if there is any best practise known how one should access
> the attributes of an object from the object itself.
>
For most properties I use $this->property within the object because nine
times out of ten no work ever needs to b
> -Original Message-
> From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel
> Brown
> Sent: Monday, May 23, 2011 11:20 AM
> To: tedd
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Posts that include bracket OT bracket
>
> On Mon, May 23, 2011 at 11:33, tedd wro
At 11:29 AM -0400 5/23/11, Daniel Brown wrote:
On Fri, May 20, 2011 at 12:55, Marc Guay wrote:
I imagine this one's been done before, but maybe not in the same way
I believe it was, but not quite the same, you're right.
"If at first you don't succeed, try, try again."
"If
On Mon, May 23, 2011 at 11:52 AM, Al wrote:
> How can I prevent access to all files in a directory except one with an
> htaccess file.
>
> I've tried several approaches found with Googling; but, none seem to work.
>
> e.g.,
>
> Order Allow,Deny
> Deny from all
>
>
> This seems to me as it shoul
On Mon, May 23, 2011 at 11:33, tedd wrote:
> Hi gang:
>
> When did the list start rejecting subject lines that contain "[OT]"?
At least several years ago. It bounces back to say that off-topic
mail isn't accepted, blah, blah, blah.
--
Network Infrastructure Manager
http://www.php.net/
-
First turn your ReWriteEngine On.
This can be done in the particular folder to allow them access to only the
one file.
You need to understand the conditions of mod_rewrite read below.
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
OR
you can just use the http://cooletips.de/htaccess/ fr
How can I prevent access to all files in a directory except one with an htaccess
file.
I've tried several approaches found with Googling; but, none seem to work.
e.g.,
Order Allow,Deny
Deny from all
This seems to me as it should deny to all except makeScodeImg.php
Thanks
--
PHP General Ma
On May 23, 2011, at 11:29 AM, tedd wrote:
> At 10:39 AM -0400 5/23/11, Floyd Resler wrote:
>> I landed my first big PHP contract (yeah!) and am need of a contract or
>> agreement example. Does anyone have, or know of a good source for,
>> contract/agreement examples?
>>
>> Thanks!
>> Floyd
>
Hi gang:
When did the list start rejecting subject lines that contain "[OT]"?
Cheers,
tedd
--
---
http://sperling.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, May 20, 2011 at 12:55, Marc Guay wrote:
> I imagine this one's been done before, but maybe not in the same way
I believe it was, but not quite the same, you're right.
"If at first you don't succeed, try, try again."
Nice one, Marc.
>
> $result = succeed();
At 10:39 AM -0400 5/23/11, Floyd Resler wrote:
I landed my first big PHP contract (yeah!) and am need of a contract
or agreement example. Does anyone have, or know of a good source
for, contract/agreement examples?
Thanks!
Floyd
Floyd:
Here's something you may want to read:
http://24ways.
On May 23, 2011, at 11:12 AM, Jonesy wrote:
> On Mon, 23 May 2011 10:39:10 -0400, Floyd Resler wrote:
>
>> I landed my first big PHP contract (yeah!) and am need of a contract
>> or agreement example. Does anyone have, or know of a good source for,
>> contract/agreement examples? > > Thanks!
On Mon, 23 May 2011 10:39:10 -0400, Floyd Resler wrote:
> I landed my first big PHP contract (yeah!) and am need of a contract
> or agreement example. Does anyone have, or know of a good source for,
> contract/agreement examples? > > Thanks! > Floyd > >
Enforceable in what country/province?
On 23 May 2011 14:28, Alex Nikitin wrote:
> There is an interesting note in the comments for strcmp:
> "Well, I am using PHP 4.0 and both strcmp and strcasecmp appear to be giving
> me very arbitrary and incomprehensible results. When I input strings, it
> appears that "equal" strings return "1",
I landed my first big PHP contract (yeah!) and am need of a contract or
agreement example. Does anyone have, or know of a good source for,
contract/agreement examples?
Thanks!
Floyd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, May 23, 2011 at 9:55 AM, Tamara Temple wrote:
> Isn't this typically why date selectors are used on the front end?
>
Not really. Date selectors are intended to make data entry easier on
the front end while allowing only valid date selections, but you can't
really rely on them.
* Most dat
On May 23, 2011, at 9:47 AM, Alex Nikitin wrote:
>
> It depends on what you need to check, josh :)
>
> If you wanted to say find an anagram, or do a search with some typo
> correction, strcmp can be many times more helpful then a ===, that said
> comparing 2 strings to be equal === works about
Isn't this typically why date selectors are used on the front end?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On May 23, 2011, at 9:45 AM, tedd wrote:
> At 9:32 AM -0400 5/23/11, Joshua Kehn wrote:
>>
>> All this confusion makes me glad that I'm using === for equality checks
>> instead of strcmp.
>>
>> -Josh
>
> -Josh:
>
> Yes, but what if you were sorting? I know you could use sort(), but there
> m
> -Original Message-
> From: tedd [mailto:tedd.sperl...@gmail.com]
> Sent: 23 May 2011 14:41
> The "which way the arrows point" thing is because I'm dyslexic.
> While
> I know that "a" appears before "b", it's difficult for me to think
> of
> 'a' being less than 'b' -- UNLESS -- I think i
On Mon, May 23, 2011 at 9:32 AM, Joshua Kehn wrote:
>
> On May 23, 2011, at 9:28 AM, Alex Nikitin wrote:
>
> > There is an interesting note in the comments for strcmp:
> > "Well, I am using PHP 4.0 and both strcmp and strcasecmp appear to be
> giving me very arbitrary and incomprehensible results
At 9:32 AM -0400 5/23/11, Joshua Kehn wrote:
All this confusion makes me glad that I'm using === for equality
checks instead of strcmp.
-Josh
-Josh:
Yes, but what if you were sorting? I know you could use sort(), but
there might be logic where a strcmp() would better solve the problem.
At 1:06 PM + 5/23/11, Ford, Mike wrote:
(Incidentally, tedd, your test script has the < > signs the wrong way
round in the output; plus which they should be < > anyway; plus
plus which, you are not applying htmlspecialchars() or whatever to
your echoed user input, so values such as
">
On May 23, 2011, at 9:28 AM, Alex Nikitin wrote:
> There is an interesting note in the comments for strcmp:
> "Well, I am using PHP 4.0 and both strcmp and strcasecmp appear to be giving
> me very arbitrary and incomprehensible results. When I input strings, it
> appears that "equal" strings re
hi,
i was wondering if there is any best practise known how one should
access the attributes of an object from the object itself.
i mean, it is a good practise to write getters and setters for the
attributes of an object to its interface. but is it common to modify the
attributes from the obje
On 23/05/11 13:12, tedd wrote:
At 9:47 AM +0100 5/23/11, Pete Ford wrote:
Finally, for some applications I have made an AJAX (javascript + PHP)
implementation which provides feedback to the user as they type in the
date field: every time a character is typed in the box, the backend is
asked to p
ah i forgot e_all doesnt include e_strict. with error_reporting(-1 /
E_ALL | E_STRICT) i see the errors. so i think i am right that the use
of that special behavior of php is not a good idea. thank you guys!
Am 23.05.2011 00:32, schrieb Richard Quadling:
On 22 May 2011 22:44, Simon Hilz wrote
I checked on php 5.2.4-2 (ubuntu5.12). It returns 1,-1,1
On Mon, May 23, 2011 at 4:00 PM, tedd wrote:
> At 8:13 AM + 5/23/11, Ford, Mike wrote:
>
>> > -Original Message-
>> > From: tedd [mailto:tedd.sperl...@gmail.com]
>> > >On Sat, 21 May 2011 09:26:02 -0400, tedd wrote:
>> > >>
On 23 May 2011 13:24, Joshua Kehn wrote:
> On May 23, 2011, at 8:17 AM, tedd wrote:
>
>>> > Mike:
That's interesting. Try the same comparisons here:
http://www.webbytedd.com/lcc/citw229/string-compare.php
>>> > For me they are 1, -1, and 1.
>>>
>>> Might that have somethin
> -Original Message-
> From: Joshua Kehn [mailto:josh.k...@gmail.com]
> Sent: 23 May 2011 13:04
>
> On May 23, 2011, at 8:00 AM, tedd wrote:
>
> > At 8:13 AM + 5/23/11, Ford, Mike wrote:
> >> echo strcmp('These are nearly equal', 'These are almost
> equal'), "\n";
> >> echo strcm
[snip][/snip]
5.2.9 yields -1, 0, 1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On May 23, 2011, at 8:17 AM, tedd wrote:
>> > Mike:
>>>
>>> That's interesting. Try the same comparisons here:
>>>
>>> http://www.webbytedd.com/lcc/citw229/string-compare.php
>>>
>> > For me they are 1, -1, and 1.
>>
>> Might that have something to do with the version of PHP running?
>>
>>
>
> Mike:
That's interesting. Try the same comparisons here:
http://www.webbytedd.com/lcc/citw229/string-compare.php
> For me they are 1, -1, and 1.
Might that have something to do with the version of PHP running?
-Josh
-Josh:
I've written this on two different servers.
One is Versi
At 9:47 AM +0100 5/23/11, Pete Ford wrote:
Finally, for some applications I have made an AJAX (javascript +
PHP) implementation which provides feedback to the user as they type
in the date field: every time a character is typed in the box, the
backend is asked to parse it and then format it in
On May 23, 2011, at 8:00 AM, tedd wrote:
> At 8:13 AM + 5/23/11, Ford, Mike wrote:
>> > -Original Message-
>> > From: tedd [mailto:tedd.sperl...@gmail.com]
>> > >On Sat, 21 May 2011 09:26:02 -0400, tedd wrote:
>> > >> The function strcmp() simply evaluates two strings and reports
>> >
At 8:13 AM + 5/23/11, Ford, Mike wrote:
> -Original Message-
> From: tedd [mailto:tedd.sperl...@gmail.com]
> >On Sat, 21 May 2011 09:26:02 -0400, tedd wrote:
> >> The function strcmp() simply evaluates two strings and reports
> back -1, 0, or 1 depending upon their alphabetical
On 20/05/11 16:29, Geoff Lane wrote:
On Friday, May 20, 2011, Peter Lind wrote:
Try:
$date = new DateTime($date_string_to_validate);
echo $date->format('Y-m-d');
Many thanks. Unfortunately, as I mentioned in my OP, the DateTime
class seems to be 'broken' for my purposes because it uses str
On 22/05/11 06:46, Roger Riordan wrote:
On Thu, 05 May 2011 08:28:53 -0400, sstap...@mnsi.net (Steve Staples) wrote:
On Thu, 2011-05-05 at 21:41 +1000, Roger Riordan wrote:
I have developed a common engine which I use for several different websites. I
had been
using PHP 5.2.? and IE6 (yes; I
> -Original Message-
> From: tedd [mailto:tedd.sperl...@gmail.com]
> Sent: 22 May 2011 22:33
>
> At 5:50 PM +0200 5/22/11, Nisse =?utf-8?Q?Engstr=C3=B6m?= wrote:
> >On Sat, 21 May 2011 09:26:02 -0400, tedd wrote:
> >
> >> The function strcmp() simply evaluates two strings and reports
> ba
41 matches
Mail list logo