Re: [PHP] phpsadness

2011-06-03 Thread Peter Lind
On 3 June 2011 20:42, tedd wrote: > At 4:23 PM +0200 6/3/11, Peter Lind wrote: >> >> On Jun 3, 2011 3:48 PM, "tedd" >> <<mailto:tedd.sperl...@gmail.com>tedd.sperl...@gmail.com> wrote: >>  >>    That's correct.  If it causes too much user

Re: [PHP] phpsadness

2011-06-03 Thread Peter Lind
On 3 June 2011 17:36, Stuart Dallas wrote: > On Fri, Jun 3, 2011 at 4:14 PM, Peter Lind wrote: >> >> On Jun 3, 2011 4:52 PM, "Paul M Foster" wrote: >> > >> > On Fri, Jun 03, 2011 at 04:23:54PM +0200, Peter Lind wrote: >> > >> > >

Re: [PHP] phpsadness

2011-06-03 Thread Peter Lind
On Jun 3, 2011 4:52 PM, "Paul M Foster" wrote: > > On Fri, Jun 03, 2011 at 04:23:54PM +0200, Peter Lind wrote: > > > On Jun 3, 2011 3:48 PM, "tedd" wrote: > > > > > > At 1:02 PM -0400 6/2/11, Daniel Brown wrote: > >

Re: [PHP] phpsadness

2011-06-03 Thread Peter Lind
On Jun 3, 2011 3:48 PM, "tedd" wrote: > > At 1:02 PM -0400 6/2/11, Daniel Brown wrote: >> >> On Tue, May 31, 2011 at 22:13, Bill Guion wrote: >>> >>> >>> So if I understand, you want an explode() with empty parameters to explode >>> the host machine? >> >> >>That's correct. If it causes to

Re: [PHP] phpsadness

2011-05-28 Thread Peter Lind
On May 28, 2011 11:27 AM, "Andre Polykanine" wrote: > > Hello Lester, > > Actually, many of the points are not important for me so far, however > this one really drives me mad: > http://phpsadness.com/?page=sad/35 (can't explode() by an empty > string) http://www.php.net/manual/en/functio

Re: [PHP] context when calling non static method of class in a static way

2011-05-22 Thread Peter Lind
class A { public function b() { echo get_class($this); } static function c() { echo get_class($this); } } class B { public function test(){ A::b(); A::c(); } } $b = new B; $b->test(); Generates: Strict Standards: Non-static method A::b() sho

Re: [PHP] Check the byte sequence of a file to tell if it is UTF-8 without the BOM using PHP ?

2011-05-22 Thread Peter Lind
On 22 May 2011 09:03, Eli Orr (Office) wrote: > Dear Peter, > > But my point was different. > > If you DO NOT have any BOM of a File does > > mb_detect_encodin > > can detect the file type by scanning the whole file ?? > A few points: 1. top-posting on this list is frowned upon. Please bottom-pos

Re: [PHP] Check the byte sequence of a file to tell if it is UTF-8 without the BOM using PHP ?

2011-05-21 Thread Peter Lind
On 22 May 2011 08:17, Eli Orr (Office) wrote: > Hi Adam, > > I have a prof that the XML advise does not work in real cases I had. > We are using XMLs in our system but when you edit the XML with  a text > editor and put the XML heading of UTF-8 > > > it DOES NOT assure the text inside is encoded

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 18:42, Stuart Dallas wrote: > On Sat, May 21, 2011 at 5:33 PM, Peter Lind wrote: >> >> On 21 May 2011 18:26, Stuart Dallas wrote: >> >> *snip* >> >> > http://en.wikipedia.org/wiki/Defensive_programming >> > You do things your

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 18:26, Stuart Dallas 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 -- WWW: plphp.dk / plind.dk LinkedIn:

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 18:05, Stuart Dallas wrote: > On Sat, May 21, 2011 at 4:57 PM, Peter Lind wrote: >> >> On 21 May 2011 17:34, Stuart Dallas wrote: >> > On Sat, May 21, 2011 at 4:24 PM, Peter Lind >> > wrote: >> >> >> >> On 2

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 17:34, Stuart Dallas wrote: > On Sat, May 21, 2011 at 4:24 PM, Peter Lind wrote: >> >> On 21 May 2011 17:18, Stuart Dallas wrote: >> >> *snip* >> >> >> Again, this depends upon what your url scheme looks like - and without >> &g

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 17:18, Stuart Dallas 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). > > Again, I di

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 17:01, Stuart Dallas wrote: > On Sat, May 21, 2011 at 3:35 PM, Peter Lind wrote: >> >> On 21 May 2011 16:18, Stuart Dallas wrote: >> > On Sat, May 21, 2011 at 3:11 PM, tedd wrote: >> > >> >> Hi gang: >> >> >> >&g

Re: [PHP] Script ID?

2011-05-21 Thread Peter Lind
On 21 May 2011 16:18, Stuart Dallas wrote: > On Sat, May 21, 2011 at 3:11 PM, 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 fo

Re: [PHP] Re: Date validation

2011-05-20 Thread Peter Lind
On 20 May 2011 16:47, Geoff Lane wrote: *snip* >>> Also, AFAICT createFromFormat fails if the date is not formatted >>> according to the first parameter. So, for example: >>>  $date = DateTime::createFromFormat('d M Y', '5/2/10') >>> fails ... (at least, it does on my system :( ) >>> > >> I'm s

Re: [PHP] Re: Date validation

2011-05-20 Thread Peter Lind
2011/5/20 João Cândido de Souza Neto : > If you look carefully, you´ll notice that I´m using the DateTime object > (default from PHP 5.2.0 or higher) not the function date. If you look carefully, you'll notice that I replied to Geoff. Regards Peter -- WWW: plphp.dk / plind.dk LinkedIn: pli

Re: [PHP] Re: Date validation

2011-05-20 Thread Peter Lind
On 20 May 2011 16:22, Geoff Lane wrote: >  On Friday, May 20, 2011, João Cândido de Souza Neto wrote: > >> What about using this: > >> $date = DateTime::createFromFormat("Y-m-d", "2011-05-20"); > > Hi João, and thanks for your help. > > FWIW, I thought about that but it didn't work for me. On

Re: Re: [PHP] A Review Request

2011-05-20 Thread Peter Lind
On 20 May 2011 11:20, Tim Streater wrote: *snip* > [...] is marked as being aimed at the novice, and at the same time lists some > of the areas that deliberately haven't been addressed in the example > provided, then that should suffice. > Apart from the above that would make great additions,

Re: [PHP] A Review Request

2011-05-18 Thread Peter Lind
On 18 May 2011 23:50, tedd wrote: > At 11:22 PM +0200 5/18/11, Peter Lind wrote: >> >> On 18 May 2011 23:12, tedd wrote: >> >>  > Thanks, but the point here *is* to get people involved using PHP. >> >> Good and noble intent. Does not in any way have anyt

Re: Re: [PHP] A Review Request

2011-05-18 Thread Peter Lind
On 18 May 2011 23:28, Tim Streater wrote: > On 18 May 2011 at 22:22, Peter Lind wrote: > >> On 18 May 2011 23:12, tedd wrote: > >>> This is just one way to give-back. >> >> Suggesting people that they copypaste your code is a very bad way of >>

Re: [PHP] A Review Request

2011-05-18 Thread Peter Lind
On 18 May 2011 23:12, tedd wrote: > At 10:55 PM +0200 5/18/11, Peter Lind wrote: >> >> On 18 May 2011 22:34, tedd wrote: >>> >>>  At 3:31 PM -0400 5/18/11, Joshua Kehn wrote: >>>> >>>>  On May 18, 2011, at 3:22 PM, tedd wrote: >&g

Re: [PHP] A Review Request

2011-05-18 Thread Peter Lind
On 18 May 2011 22:34, tedd wrote: > At 3:31 PM -0400 5/18/11, Joshua Kehn wrote: >> >> On May 18, 2011, at 3:22 PM, tedd wrote: >>> >>> I am considering providing PHP code to the general public via my website >>> >>> This is my first attempt: >>> >>> >>> htt

Re: [PHP] Consistent Class Renaming (Simple Refactoring)

2011-05-17 Thread Peter Lind
On May 17, 2011 4:32 PM, "Daniel Brown" wrote: > > On Mon, May 16, 2011 at 18:46, Richard Quadling wrote: > > > > "2.7.2"? I'm guessing 5.7.2. > >Then you're guessing wrong, sir. There was no 2.7.2, and it's > highly unlikely there would ever be a 5.7.2 either. > >Closest I can guess is

Re: [PHP] An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading

2011-05-17 Thread Peter Lind
On May 17, 2011 5:05 PM, "tedd" wrote: > > At 1:19 PM +0100 5/17/11, Richard Quadling wrote: >> >> On 17 May 2011 12:45, Singapore Citizen Mr. Teo En Ming (Zhang Enming) >> -snip- >> >> > Please remember what Singapore Citizen Mr. Teo En Ming (Zhang Enming) have >>> >>> said. Mark my words. You

Re: Re: [PHP] Error recovery - fatal errors

2011-05-16 Thread Peter Lind
On 16 May 2011 22:14, Tim Streater wrote: > On 14 May 2011 at 15:05, Peter Lind wrote: > >> On 14 May 2011 12:33, Tim Streater wrote: >>> I would like, in my app, to recover from as many run-time errors as >>> possible, >>> so that I can tidy up.

Re: [PHP] Error recovery - fatal errors

2011-05-14 Thread Peter Lind
On 14 May 2011 12:33, Tim Streater wrote: > I would like, in my app, to recover from as many run-time errors as possible, > so that I can tidy up. And unsolicited output generated by the standard error > system is really unhelpful as it becomes part of the ajax reply to the > browser. > > So I'

Re: [PHP] Odd array_push issue

2011-05-11 Thread Peter Lind
On 11 May 2011 22:39, Richard S. Crawford wrote: > On Wed, May 11, 2011 at 1:30 PM, Peter Lind wrote: >> >> On 11 May 2011 22:23, Richard S. Crawford wrote: >> > I'm encountering what appears to be a bug in array_push when I try using >> > that function t

Re: [PHP] Odd array_push issue

2011-05-11 Thread Peter Lind
On 11 May 2011 22:23, Richard S. Crawford wrote: > I'm encountering what appears to be a bug in array_push when I try using > that function to add objects to an array. For example... > > A = Object 1 > B = Object 2 > > If I execute the following code: > > array_push(objectarray, A); > array_push(o

Re: [PHP] How to DUMP $_POST parameters to a log file? Very useful and missing in the php.net

2011-05-08 Thread Peter Lind
On May 8, 2011 1:57 PM, "Eli Orr (Office)" wrote: > > > Dear PHP Gurus, > > I need dump a $_POST parameters as part of debug process with a client. > Any know service to make this ? > > I know $_POST is an Array but I look for a service function that can save the parsed array into a file. > let s

Re: [PHP] Wiki formatting class or something similar

2011-04-30 Thread Peter Lind
On 30 April 2011 21:26, Andre Polykanine wrote: > Hello Peter, > > And what would you recommend as an Html sanitizing tool? > I go by htmlpurifier when I need to sanitize html. I generally try to avoid the issue though, by having users use other markup languages (I like markdown but dislike texti

Re: [PHP] Wiki formatting class or something similar

2011-04-30 Thread Peter Lind
On 30 April 2011 15:13, Stuart Dallas wrote: > On Friday, 29 April 2011 at 22:04, Andre Polykanine wrote: > Hi everyone, >> I allow my users to put some Html into their blogs. I filter it using >> a great tool called HtmLawed and written by Dr. Santosh Patnaik (if >> you're reading this, many than

Re: [PHP] Re: Config files: what is best? (was: Re: [PHP] XML... Useful or another layer of complexity?)

2011-04-03 Thread Peter Lind
On 3 April 2011 22:35, Andre Polykanine wrote: > Hello Peter, > > Thanks a lot! And is there a way to set (write) custom values in files > other than php.ini? Sorry, didn't find such a function. > I haven't come across any, but then again, I haven't had the need so never looked much ... It would

[PHP] Re: Config files: what is best? (was: Re: [PHP] XML... Useful or another layer of complexity?)

2011-04-03 Thread Peter Lind
On 3 April 2011 21:41, Andre Polykanine wrote: > Hello Peter, > > Just because you mentioned config files. > What  would  you suggest me as better format for them? Database is not > available  yet  since  I  need to make a config file before creating a > database. For config files I would suggest

Re: [PHP] XML... Useful or another layer of complexity?

2011-04-03 Thread Peter Lind
Like every other technology, XML needs to have a use before it becomes a useful tool. Just using XML because it's available quickly leads to headaches, as it isn't the best tool for all scenarios (config files written in XML for instance). That said, XML is awesome for a lot of things ... however,

Re: [PHP] is there a static constructor?

2011-03-30 Thread Peter Lind
On 31 March 2011 06:56, D. Dante Lorenso wrote: > All, > > I want to build a config file class that gets called statically.  Is there > such a thing as a static constructor?  Example: > > class Daz_Config { >  public static function load() { >    ... >  } >  public static function get($key) { >  

Re: [PHP] session variable problem

2011-03-25 Thread Peter Lind
More info (including some code) would be needed to get to the bottom of this, I'd say. Hard to diagnose what's happening otherwise. Regards Peter -- WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: kafe15 -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Deleting elements from the middle of an array

2011-03-15 Thread Peter Lind
On Mar 15, 2011 5:05 PM, "Paul M Foster" wrote: > > On Tue, Mar 15, 2011 at 07:08:28AM +0100, Peter Lind wrote: > > >On Mar 15, 2011 4:10 AM, "Paul M Foster" <[1]pa...@quillandmouse.com> > >wrote: > >> > >

Re: [PHP] Deleting elements from the middle of an array

2011-03-14 Thread Peter Lind
On Mar 15, 2011 4:10 AM, "Paul M Foster" wrote: > > On Mon, Mar 14, 2011 at 10:14:53PM +0100, Peter Lind wrote: > > > On 14 March 2011 22:10, Paul M Foster wrote: > > [snip] > > > >> Remove the elements, then use sort(). > > > > >

Re: [PHP] Deleting elements from the middle of an array

2011-03-14 Thread Peter Lind
On 14 March 2011 22:10, Paul M Foster wrote: > On Mon, Mar 14, 2011 at 09:34:33PM +0100, Peter Lind wrote: > >> On 14 March 2011 21:31, Paul M Foster wrote: >> > Here's what I need to do: I have an indexed array, from which I need to >> > delete elements

Re: [PHP] Deleting elements from the middle of an array

2011-03-14 Thread Peter Lind
On 14 March 2011 21:31, Paul M Foster wrote: > Here's what I need to do: I have an indexed array, from which I need to > delete elements in the middle. Once completed, the indexes should be > numerically in sequence, as they were when I first encountered the > array. That is: > > Before: > $arr =

Re: RE: [PHP] Check for open file

2011-03-03 Thread Peter Lind
On Mar 4, 2011 4:53 AM, "Ashley M. Kirchner" wrote: > > > -Original Message- > > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > > Sent: Thursday, March 03, 2011 2:03 PM > > To: sstap...@mnsi.net > > Cc: php-general@lists.php.net > > Subject: RE: [PHP] Check for open file > > >

[PHP] Infosys FYI

2011-02-26 Thread Peter Lind
Det gik op for mig at i tilmeldingsstresset fik jeg taget 2010 databasen ned. Den er nu tilgængelig igen. Man bruger: - http://archive.fastaval.dk/2010/infosys/ for at set 2010 udgaven - http://infosys.fastaval.dk/ for at se 2011 udgaven Derudover er 2009 udgaven stadig tilgængelig på http://arch

Re: [PHP] HTTP Authenticaion Query

2011-02-20 Thread Peter Lind
On 21 February 2011 06:27, Ashim Kapoor wrote: >   if (!isset($_SERVER['PHP_AUTH_USER'])) { >    header('WWW-Authenticate: Basic realm="My Realm"'); >    header('HTTP/1.0 401 Unauthorized'); >    echo 'Text to send if user hits Cancel button'; >    exit; > } else { >    echo "Hello {$_SERVER['PHP_

Re: [PHP] Regex pattern for preg_match_all

2011-02-18 Thread Peter Lind
On 18 February 2011 22:36, Tommy Pham wrote: > Hi folks, > > This is not directly relating to PHP but it's Friday so I'm gonna give > it a shot :).  Would someone please help me figure out why my regex > pattern doesn't work.  Below is the code and sample data: > > $html = << href="http://images.

Re: [PHP] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 22:04, Paul M Foster wrote: > On Wed, Feb 16, 2011 at 09:21:20PM +0100, Peter Lind wrote: > >> On 16 February 2011 21:00, Dan Schaefer wrote: >> > In my code, I set the optional parameter to NULL and check for triple >> equals >> > "

Re: [PHP] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 21:45, Adam Richardson wrote: > On Wed, Feb 16, 2011 at 3:21 PM, Peter Lind wrote: > >> On 16 February 2011 21:00, Dan Schaefer wrote: >> > In my code, I set the optional parameter to NULL and check for triple >> equals >> > "===&

Re: [PHP] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 21:45, Andre Polykanine wrote: > Hello Peter, > > So is > func_get_args() >     the unique way? > Not really sure what you mean by the unique way. Most things proposed so far in the thread would be fine for most purposes, I'd say. If you really need finegrained control, I'd su

Re: [PHP] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 21:00, Dan Schaefer wrote: > In my code, I set the optional parameter to NULL and check for triple equals > "===" or "!==" to see if the variable has been passed with a value. IMO, > this is the safest way. > > function MyFunction($x, $y, $z=NULL) { > if ($z !== NULL) { > // Do

Re: [PHP] Displaying Results

2011-02-15 Thread Peter Lind
On 15 February 2011 20:28, Ethan Rosenberg wrote: > Dear List - > >  I have a form.  In one field, the customer types the name of a product. >  The first seven(7) results of the MySQL query that the entry generates > should be displayed as a clickable drop down list. > > How do I do it? Ask googl

Re: [PHP] Re: First PHP site - thanks - euca_phpmysql function library

2011-02-09 Thread Peter Lind
On 9 February 2011 17:22, Bob McConnell wrote: > From: Peter Lind > >> On 9 February 2011 14:57, Bob McConnell wrote: >>> From: Al >>> >>>> On 2/8/2011 4:58 PM, Donovan Brooke wrote: >>>>> Hello, >>>>> >>>

Re: [PHP] Re: First PHP site - thanks - euca_phpmysql function library

2011-02-09 Thread Peter Lind
On 9 February 2011 14:57, Bob McConnell wrote: > From: Al > >> On 2/8/2011 4:58 PM, Donovan Brooke wrote: >>> Hello, >>> >>> Just wanted to say thanks to those that helped me get through my > first PHP >>> project (over the last month). >>> >>> As is with much of the work we server-side language p

Re: [PHP] Bilingual strtotime()

2011-02-06 Thread Peter Lind
On Feb 6, 2011 11:16 AM, "Per Jessen" wrote: > > Alexis wrote: > > > I was wondering if there was a way to use the strtotime() function > > when the months are in one or the other of the above two languages? > > Ah, I misread this earlier - strtotime(), not strftime(). You're > talking about tran

Re: [PHP] No SMTP server? Can't get mail()

2011-01-20 Thread Peter Lind
Probably not the solution you were looking for, but I've always found mail() very unstable and I tend to use a mail library instead. Like phpmailer or swiftmailer. Easier to configure and figure out problems with. Regards Peter

Re: [PHP] email address syntax checker

2011-01-19 Thread Peter Lind
On 20 January 2011 05:14, Donovan Brooke wrote: > Hi Guys, > > I'm waddling my way through database interaction and thought someone on the > list may already have a simple email checker that they'd like to share... > > you know, looking for the @ char and dots etc.. > > I did a quick search of the

Re: [PHP] Class and interface location

2011-01-19 Thread Peter Lind
How often would this profiling have to happen? Seems to me that if it's a "once per build" or "once per someone pressing the button", then go for the more expensive analysis checking through the files. Just build up a tree that shows which classes implement what or inherit from where, save that alo

Re: [PHP] Re: email list 101

2011-01-16 Thread Peter Lind
On 16 January 2011 16:35, Michelle Konzack wrote: > Hello Kirk Bailey, > > Am 2011-01-16 10:09:03, hacktest Du folgendes herunter: >> So, in php, I want a program to handle sending out a mail list. All >> this is going to do is be a filter to exclude non subscribers, and >> send a copy to every pe

Re: [PHP] projectpier

2011-01-12 Thread Peter Lind
2011/1/12 Ashley Sheridan > On Wed, 2011-01-12 at 23:14 +0100, Peter Lind wrote: > > jeg har flyttet projectpier over paa fastaval.dk domaenet - > det koerer nu under pp.fastaval.dk. Der er ogsaa sat redirects op paa > fastaval.plphp.dk saa man skulle ikke kunne komme til det g

[PHP] projectpier

2011-01-12 Thread Peter Lind
Heads up: jeg har flyttet projectpier over paa fastaval.dk domaenet - det koerer nu under pp.fastaval.dk. Der er ogsaa sat redirects op paa fastaval.plphp.dk saa man skulle ikke kunne komme til det gamle site (og dermed ikke logge ind det forkerte sted). -- WWW: plphp.dk / plind.dk LinkedIn: pli

Re: [PHP] Re: First PHP job

2011-01-11 Thread Peter Lind
On Jan 11, 2011 4:32 PM, "Gary" wrote: > > Steve Staples wrote: > > or the ($needle, $haystack) vs ($haystack, $needle)... i still get it > > screwed up... > > Given that, for example, array_search and strstr take those arguments in > different orders, that's not really surprising. > Something te

Re: [PHP] Re: Re: Re: PHP extension for equivalen of "getent"?

2011-01-08 Thread Peter Lind
On Jan 8, 2011 9:53 AM, "David Robley" wrote: > > Michelle Konzack wrote: > > > Hello David Robley, > > > > Am 2011-01-08 16:25:38, hacktest Du folgendes herunter: > >> You might find http://xchm.sourceforge.net/ useful :-) > > > > [ 'apt-cache policy xchm' ]---

Re: [PHP] Global or include?

2011-01-06 Thread Peter Lind
On Jan 6, 2011 4:24 PM, "Sándor Tamás" wrote: > > In that case you should use include_once in every script. But if you are absolutely sure that all scripts will be processed, you can include it only in one of them, because PHP - in short terms - does a file include, so it will look like as the in

Re: [PHP] memory usage/release & GC

2010-12-31 Thread Peter Lind
On Dec 31, 2010 6:20 AM, "Tommy Pham" wrote: > > Hi folks, > > With the recent thread about password & security, I wrote a small quick > script to generate a random or all possible passwords based on certain > parameters for a brute force use. On a very long running execution for a > complex pass

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Peter Lind
On 28 December 2010 22:06, Daniel Brown wrote: > On Tue, Dec 28, 2010 at 16:05, Dotan Cohen wrote: >> >> Did you know that when you type 'brown1' we see it as **? Your >> system does that automatically. > >    That's how I see it, too.  It took me fourteen years to realize > that my password

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Peter Lind
On 28 December 2010 21:18, Dotan Cohen wrote: > On Tue, Dec 28, 2010 at 21:57, Nathan Rixham wrote: >> Don't trim or limit the range of input characters, but far more importantly >> /don't send passwords in clear text/, indeed don't generate passwords at >> all, let users enter there desired pass

Re: [PHP] How to define a data range for graphing?

2010-12-17 Thread Peter Lind
On Friday, 17 December 2010, Simon J Welsh wrote: > On 18/12/2010, at 8:45 AM, Brian Dunning wrote: > >> Hey all - >> >> I'm trying to provide reporting to users of our widget. Some may get 0 to 5 >> hits a day; others may get up to 10,000 hits a day. I need to define the >> range of the graph (

Re: [PHP] ORM doctrine

2010-12-12 Thread Peter Lind
On Sunday, 12 December 2010, Lester Caine wrote: > Peter Lind wrote: > > I may have misunderstood the topic, but a cache to me is more than > just storing views. It's also the db cache, memcache, apc, etc. You > have to think about how you use these - some of them can'

Re: [PHP] ORM doctrine

2010-12-12 Thread Peter Lind
On Sunday, 12 December 2010, Tommy Pham wrote: >> -Original Message- >> From: Lester Caine [mailto:les...@lsces.co.uk] >> Sent: Sunday, December 12, 2010 2:10 AM >> To: php-general List >> Subject: Re: [PHP] ORM doctrine >> >> Peter Lind wrote: &g

Re: [PHP] ORM doctrine

2010-12-12 Thread Peter Lind
On Sunday, 12 December 2010, Tommy Pham wrote: >> -Original Message- >> From: Lester Caine [mailto:les...@lsces.co.uk] >> Sent: Sunday, December 12, 2010 2:10 AM >> To: php-general List >> Subject: Re: [PHP] ORM doctrine >> >> Peter Lind wrote: &g

Re: [PHP] ORM doctrine

2010-12-12 Thread Peter Lind
On Sunday, 12 December 2010, Tommy Pham wrote: >> -Original Message- >> From: Peter Lind [mailto:peter.e.l...@gmail.com] >> Sent: Sunday, December 12, 2010 1:18 AM >> To: Tommy Pham >> Cc: php-general List >> Subject: Re: [PHP] ORM doctrine >&

Re: [PHP] ORM doctrine

2010-12-12 Thread Peter Lind
> I understand cache well, both the benefits (save DB trip) and shortfalls > (outdated by DB, management, etc.).  Most of the apps that I've seen so far > used cache to solve a problem that shouldn't happen in the 1st place.  For > example, during recent my quest looking PHP MVC framework and sa

Re: [PHP] ORM doctrine

2010-12-11 Thread Peter Lind
On Friday, 10 December 2010, Tommy Pham wrote: * snup * > The way I see it is this: > > 1) Thorough understanding of the problem: needs of the client/company, > programming language in use, etc. > 2) Thorough understanding of the objective of the application: answer the > needs, capable of possi

Re: [PHP] php mail() and sendmail/smtp

2010-12-02 Thread Peter Lind
2010/12/2 Michael Crowl : * snip * > Also, we > have Redmine running on the same server, and it sends admin emails out just > fine - however, I don't think it calls sendmail directly like our PHP > install, but connects directly to the local SMTP server. Sounds like a solution to me: connect to

Re: [PHP] PHP Add +1 mysql updates by 2?

2010-11-26 Thread Peter Lind
And what difference will that make if the document is requested twice with every browser load? On Nov 27, 2010 6:39 AM, "Richard West" wrote: > I took that into consideration so I added the update at the very end of document... > Still the same, > RD > > > > > O

Re: [PHP] PHP Add +1 mysql updates by 2?

2010-11-26 Thread Peter Lind
On Saturday, November 27, 2010, Richard West wrote: > Hey Tommy, > > I get the same when seting it to a_downloads=a_downloads+1 > It still increments by 2 > I've never run into this before. > RD > > > On Nov 26, 2010, at 11:45 PM, Tommy Pham wrote: > >>> -Original Message- >>> From: Tamara

Re: [PHP] is this thing on??

2010-11-23 Thread Peter Lind
On 23 November 2010 20:52, Steve Staples wrote: > tap tap tap... testing testing... 1, 2, 3 > > Hello?    No activity since yesterday at like 6pm EST... am i not > getting messages, or has there not been any activity? > > Just curious... carry on about your business... :P > http://news.php.ne

Re: [PHP] Procedural Autoloader?

2010-11-22 Thread Peter Lind
On 22 November 2010 22:40, Daniel P. Brown wrote: > On Mon, Nov 22, 2010 at 16:31, Nathan Nobbe wrote: >> >> Shrug, if you want to really be dirty about it, you could just put a 'class' >> atop each file of functions. >> > class IWishTheseFunctionsWereOOInstead {} // :P >> function firstProceedur

Re: [PHP] DOMDocument/DOMElement problem

2010-11-17 Thread Peter Lind
On 16 November 2010 21:30, Adam Richardson wrote: > Hmmm... > > Nothing really stands out to me, but as my wife would attest, I'm often less > than observant. > > I would probably try sifting through fixes/upgrades in the change logs for > possible conflicts and/or changes in behavior.  Nothing ju

[PHP] DOMDocument/DOMElement problem

2010-11-16 Thread Peter Lind
I'm currently trying to parse a document with DOMDocument, and I'm having some serious problems. I created a script that runs fine on php 5.2.9, ripping out content using DOMNode::nodeValue. The same script fails to get any content on php 5.3.3 - even though it correctly navigates to the proper nod

Re: [PHP] Template engines

2010-11-08 Thread Peter Lind
On 9 November 2010 06:20, Paul M Foster wrote: > On Mon, Nov 08, 2010 at 02:41:12PM -0700, Hansen, Mike wrote: > >> I really like the idea of using a templating engine. Which one do you >> use? Why? For those that don't use templating engines, why don't you >> use them? >> > > Here's why I don't u

Re: [PHP] Template engines

2010-11-08 Thread Peter Lind
On 8 November 2010 22:59, Michael Shadle wrote: > On Mon, Nov 8, 2010 at 1:41 PM, Hansen, Mike wrote: >> I really like the idea of using a templating engine. Which one do you use? >> Why? For those that don't use templating engines, why don't you use them? > > smarty is everyone's favorite usual

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Peter Lind
That's not going to happen. My point was you could check in the original file if the function is defined and if not then define it. On Nov 3, 2010 11:55 AM, "David Nelson" wrote: > Hi Peter, :-) > > On Wed, Nov 3, 2010 at 18:44, Peter Lind wrote: >> You can check wi

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Peter Lind
You can check with function_exists to see if a function is already defined. If not, create it. Regards Peter On Nov 3, 2010 11:40 AM, "David Nelson" wrote: > Hi Thijs, :-) > > On Wed, Nov 3, 2010 at 18:18, Thijs Lensselink wrote: >> As far as I know it is not possible to overwrite functions in P

Re: [PHP] Re: Possible foreach bug; seeking advice to isolate the problem

2010-10-23 Thread Peter Lind
On 23 October 2010 16:48, Jonathan Sachs <081...@jhsachs.com> wrote: > On Sat, 23 Oct 2010 08:34:27 +0200, peter.e.l...@gmail.com (Peter > Lind) wrote: > >>It is not a bug - somewhere before the foreach loop you've got, a >>variable is being referenced, and that&#x

Re: [PHP] Re: Possible foreach bug; seeking advice to isolate the problem

2010-10-22 Thread Peter Lind
On 23 October 2010 07:50, Jonathan Sachs <081...@jhsachs.com> wrote: > Gary wrote: > >>Better. I can tell you how to solve it: >>    $a = array('a', 'b','c'); >>    foreach($a as &$row){ >>        //you don't have to do anything here >>    } >>    unset($row); // <<<< THIS IS KEY! >>    print_r

Re: [PHP] Reminder On Mailing List Rules

2010-10-21 Thread Peter Lind
On 21 October 2010 16:25, Daniel Brown wrote: * snip * >    The ultimate goal here isn't to start a flame war (or even any > further discussion on the subject for that matter), but to point out > that this is a RULE of the official community here, not a PREFERENCE. > If only the thread had ende

Re: [PHP] I need some thoughts on code duplication and separation

2010-10-20 Thread Peter Lind
On 21 October 2010 04:59, David McGlone wrote: > On Thu, 2010-10-21 at 04:05 +0200, Rico Secada wrote: >> Hi. >> >> I am working on a small system where I am both trying to avoid code >> duplication and at the same time I am trying to keep the presentation >> logic separated from the application l

Re: [PHP] Re: Buffering output to allow headers late in code?

2010-10-14 Thread Peter Lind
Just out of curiosity: why were you told to switch off output buffering? Regards Peter -- WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: kafe15 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] which one is faster

2010-10-06 Thread Peter Lind
On 6 October 2010 15:31, Andy McKenzie wrote: *snip* > Double quotes are the only example given:  in most documentation if > there are two allowed forms, there are two examples, or at least a > note in the text.  I haven't read enough of this particular document > to know if they follow that f

Re: [PHP] which one is faster

2010-10-06 Thread Peter Lind
On 6 October 2010 14:40, Bob McConnell wrote: > From: Steve Staples > >> On Tue, 2010-10-05 at 20:53 +0100, Ashley Sheridan wrote: >>> On Tue, 2010-10-05 at 15:46 -0400, Steve Staples wrote: >>> >>> > On Tue, 2010-10-05 at 20:35 +0100, Ashley Sheridan wrote: >>> > > On Tue, 2010-10-05 at 15:28 -04

Re: [PHP] New to PHP and struggling with the basics

2010-10-04 Thread Peter Lind
On 4 October 2010 11:30, Col Day wrote: > Hi all, > > Working with the PHP5 for Dummies book (yup real noob, feel free to ridicule > (after telling me what I've done wrong)) and have installed Apache 2.2 and > PHP 5.3.3 onto a laptop running Vista. (yes I know!!!). > > I've had Apache running fine

Re: [PHP] Re: Friday's Post

2010-10-02 Thread Peter Lind
On 2 October 2010 11:05, Per Jessen wrote: > Peter Lind wrote: > >> On 1 October 2010 20:21, Per Jessen wrote: >>> Peter Lind wrote: >>> >>>> C# has by now exceeded Java by quite a bit - >>> >>> I've been away from the Java &quo

Re: [PHP] Re: Friday's Post

2010-10-01 Thread Peter Lind
On 1 October 2010 20:21, Per Jessen wrote: > Peter Lind wrote: > >> C# has by now exceeded Java by quite a bit - > > I've been away from the Java "scene" since 2002 (when I worked for BEA > deploying J2EE on Linux/390), but assuming you're talking >

Re: [PHP] Re: Friday's Post

2010-10-01 Thread Peter Lind
On 1 October 2010 17:11, Bob McConnell wrote: > From: Gary > >> tedd wrote: >>> What do you people think of the .NET framework? >> >> It's a framework, like any other framework - can make your life > easier, >> can make your life harder by forcing you to take the path determined > as >> TOTP by it

Re: [PHP] Heredocs, print_r() and newline "\n" and fnmatch() -curious failures ...

2010-09-27 Thread Peter Lind
On 24 September 2010 12:49, YAD(YetAnotherDavid) wrote: > Peter Lind wrote: >> >> On 23 September 2010 21:47, YAD(YetAnotherDavid) wrote: >>> >>> This code is 95% cut and paste from the PHP manual examples - >>> the Types/Strings/Heredocs section and t

Re: [PHP] Re: Copying an Object

2010-09-24 Thread Peter Lind
On 25 September 2010 00:11, Daniel Kolbo wrote: > On 9/24/2010 8:35 AM, Peter Lind wrote: >> On 24 September 2010 14:22, Bob McConnell wrote: >>> From: David Hutto >>> >>>> On Fri, Sep 24, 2010 at 4:09 AM, Gary wrote: >>>>> Daniel Kolbo w

Re: [PHP] Re: Copying an Object

2010-09-24 Thread Peter Lind
On 24 September 2010 14:22, Bob McConnell wrote: > From: David Hutto > >> On Fri, Sep 24, 2010 at 4:09 AM, Gary wrote: >>> Daniel Kolbo wrote: >>> Say you have two classes: human and male.  Further, say male extends human.  Let's say you have a human object.  Then later you want to make

Re: [PHP] Heredocs, print_r() and newline "\n" and fnmatch() - curious failures ...

2010-09-24 Thread Peter Lind
On 23 September 2010 21:47, YAD(YetAnotherDavid) wrote: > This code is 95% cut and paste from the PHP manual examples - > the Types/Strings/Heredocs section and the Filesystem/fnmatch pages. > There are actually two questions here - I have combined the code into one > test file ... the strings in

Re: [PHP] Copying an Object

2010-09-22 Thread Peter Lind
On 23 September 2010 02:14, Daniel Kolbo wrote: *snip* > On 9/22/2010 9:11 AM, chris h wrote: > Say you have two classes: human and male.  Further, say male extends > human.  Let's say you have a human object.  Then later you want to make > that human object a male object.  This seems to be a pr

Re: [PHP] Database Administration

2010-09-21 Thread Peter Lind
On 21 September 2010 11:48, Tom Barrett wrote: > Hi > > I need to build a custom client management app, which will build and manage > a database per client. This means that on top of the usual sql crud, it > needs to be able to create databases, add/edit/delete database users, create > tables. > >

  1   2   3   4   >