Re: [PHP] phpsadness

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

Re: [PHP] phpsadness

2011-06-03 Thread Peter Lind
On Jun 3, 2011 4:52 PM, Paul M Foster pa...@quillandmouse.com wrote: On Fri, Jun 03, 2011 at 04:23:54PM +0200, Peter Lind wrote: On Jun 3, 2011 3:48 PM, tedd tedd.sperl...@gmail.com wrote: At 1:02 PM -0400 6/2/11, Daniel Brown wrote: On Tue, May 31, 2011 at 22:13, Bill Guion bgu

Re: [PHP] phpsadness

2011-06-03 Thread Peter Lind
On 3 June 2011 17:36, Stuart Dallas stu...@3ft9.com wrote: On Fri, Jun 3, 2011 at 4:14 PM, Peter Lind peter.e.l...@gmail.com wrote: On Jun 3, 2011 4:52 PM, Paul M Foster pa...@quillandmouse.com wrote: On Fri, Jun 03, 2011 at 04:23:54PM +0200, Peter Lind wrote: On Jun 3, 2011 3:48 PM

Re: [PHP] phpsadness

2011-06-03 Thread Peter Lind
On 3 June 2011 20:42, tedd tedd.sperl...@gmail.com wrote: At 4:23 PM +0200 6/3/11, Peter Lind wrote: On Jun 3, 2011 3:48 PM, tedd mailto:tedd.sperl...@gmail.comtedd.sperl...@gmail.com wrote:      That's correct.  If it causes too much userland confusion, we can   alias it as detonate

Re: [PHP] phpsadness

2011-05-28 Thread Peter Lind
On May 28, 2011 11:27 AM, Andre Polykanine an...@oire.org 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)

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 08:17, Eli Orr (Office) eli@logodial.com 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 ?xml version=1.0 encoding=UTF-8?

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) eli@logodial.com 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

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()

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

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

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 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 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: Re: [PHP] A Review Request

2011-05-20 Thread Peter Lind
On 20 May 2011 11:20, Tim Streater t...@clothears.org.uk 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

Re: [PHP] Re: Date validation

2011-05-20 Thread Peter Lind
On 20 May 2011 16:22, Geoff Lane ge...@gjctech.co.uk 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: [PHP] Re: Date validation

2011-05-20 Thread Peter Lind
2011/5/20 João Cândido de Souza Neto j...@consultorweb.cnt.br: 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 -- hype WWW: plphp.dk /

Re: [PHP] Re: Date validation

2011-05-20 Thread Peter Lind
On 20 May 2011 16:47, Geoff Lane ge...@gjctech.co.uk 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

Re: [PHP] A Review Request

2011-05-18 Thread Peter Lind
On 18 May 2011 22:34, tedd t...@sperling.com 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:

Re: [PHP] A Review Request

2011-05-18 Thread Peter Lind
On 18 May 2011 23:12, tedd t...@sperling.com wrote: At 10:55 PM +0200 5/18/11, Peter Lind wrote: On 18 May 2011 22:34, tedd t...@sperling.com 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

Re: Re: [PHP] A Review Request

2011-05-18 Thread Peter Lind
On 18 May 2011 23:28, Tim Streater t...@clothears.org.uk wrote: On 18 May 2011 at 22:22, Peter Lind peter.e.l...@gmail.com wrote: On 18 May 2011 23:12, tedd t...@sperling.com wrote: This is just one way to give-back. Suggesting people that they copypaste your code is a very bad way

Re: [PHP] A Review Request

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

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

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

2011-05-17 Thread Peter Lind
On May 17, 2011 4:32 PM, Daniel Brown danbr...@php.net wrote: On Mon, May 16, 2011 at 18:46, Richard Quadling rquadl...@gmail.com 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.

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

2011-05-16 Thread Peter Lind
On 16 May 2011 22:14, Tim Streater t...@clothears.org.uk wrote: On 14 May 2011 at 15:05, Peter Lind peter.e.l...@gmail.com wrote: On 14 May 2011 12:33, Tim Streater t...@clothears.org.uk wrote: I would like, in my app, to recover from as many run-time errors as possible, so that I can tidy

Re: [PHP] Error recovery - fatal errors

2011-05-14 Thread Peter Lind
On 14 May 2011 12:33, Tim Streater t...@clothears.org.uk 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

Re: [PHP] Odd array_push issue

2011-05-11 Thread Peter Lind
On 11 May 2011 22:23, Richard S. Crawford rich...@underpope.com 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);

Re: [PHP] Odd array_push issue

2011-05-11 Thread Peter Lind
On 11 May 2011 22:39, Richard S. Crawford rich...@underpope.com wrote: On Wed, May 11, 2011 at 1:30 PM, Peter Lind peter.e.l...@gmail.com wrote: On 11 May 2011 22:23, Richard S. Crawford rich...@underpope.com wrote: I'm encountering what appears to be a bug in array_push when I try using

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) eli@logodial.com 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

Re: [PHP] Wiki formatting class or something similar

2011-04-30 Thread Peter Lind
On 30 April 2011 15:13, Stuart Dallas stu...@3ft9.com 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,

Re: [PHP] Wiki formatting class or something similar

2011-04-30 Thread Peter Lind
On 30 April 2011 21:26, Andre Polykanine an...@oire.org 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

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,

[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 an...@oire.org 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

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 an...@oire.org 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 ...

Re: [PHP] is there a static constructor?

2011-03-30 Thread Peter Lind
On 31 March 2011 06:56, D. Dante Lorenso da...@lorenso.com 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

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 -- hype WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: kafe15 /hype -- PHP General Mailing List

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

2011-03-15 Thread Peter Lind
On Mar 15, 2011 4:10 AM, Paul M Foster pa...@quillandmouse.com wrote: On Mon, Mar 14, 2011 at 10:14:53PM +0100, Peter Lind wrote: On 14 March 2011 22:10, Paul M Foster pa...@quillandmouse.com wrote: [snip] Remove the elements, then use sort(). I've given a simplified example

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 pa...@quillandmouse.com 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: On Mon, Mar 14, 2011 at 10:14:53PM +0100, Peter Lind wrote

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 pa...@quillandmouse.com wrote: On Mon, Mar 14, 2011 at 09:34:33PM +0100, Peter Lind wrote: On 14 March 2011 21:31, Paul M Foster pa...@quillandmouse.com wrote: Here's what I need to do: I have an indexed array, from which I need to delete elements

Re: RE: [PHP] Check for open file

2011-03-03 Thread Peter Lind
On Mar 4, 2011 4:53 AM, Ashley M. Kirchner ash...@pcraft.com 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å

Re: [PHP] Regex pattern for preg_match_all

2011-02-18 Thread Peter Lind
On 18 February 2011 22:36, Tommy Pham tommy...@gmail.com 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 = HTML li

Re: [PHP] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 21:00, Dan Schaefer d...@performanceadmin.com 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 !==

Re: [PHP] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 21:45, Andre Polykanine an...@oire.org 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

Re: [PHP] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 21:45, Adam Richardson simples...@gmail.com wrote: On Wed, Feb 16, 2011 at 3:21 PM, Peter Lind peter.e.l...@gmail.com wrote: On 16 February 2011 21:00, Dan Schaefer d...@performanceadmin.com wrote: In my code, I set the optional parameter to NULL and check for triple

Re: [PHP] Custom function

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

Re: [PHP] Displaying Results

2011-02-15 Thread Peter Lind
On 15 February 2011 20:28, Ethan Rosenberg eth...@earthlink.net 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

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 r...@cbord.com 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 people

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 r...@cbord.com wrote: From: Peter Lind On 9 February 2011 14:57, Bob McConnell r...@cbord.com 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

Re: [PHP] Bilingual strtotime()

2011-02-06 Thread Peter Lind
On Feb 6, 2011 11:16 AM, Per Jessen p...@computer.org 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

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] 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 along

Re: [PHP] email address syntax checker

2011-01-19 Thread Peter Lind
On 20 January 2011 05:14, Donovan Brooke li...@euca.us 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

Re: [PHP] Re: email list 101

2011-01-16 Thread Peter Lind
On 16 January 2011 16:35, Michelle Konzack linux4miche...@tamay-dogan.net 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

[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). -- hype WWW: plphp.dk / plind.dk

Re: [PHP] projectpier

2011-01-12 Thread Peter Lind
2011/1/12 Ashley Sheridan a...@ashleysheridan.co.uk 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

Re: [PHP] Re: First PHP job

2011-01-11 Thread Peter Lind
On Jan 11, 2011 4:32 PM, Gary php-gene...@garydjones.name 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

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 robl...@aapt.net.au 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 sandorta...@hostware.hu 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

Re: [PHP] memory usage/release GC

2010-12-31 Thread Peter Lind
On Dec 31, 2010 6:20 AM, Tommy Pham tommy...@gmail.com 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

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

2010-12-28 Thread Peter Lind
On 28 December 2010 21:18, Dotan Cohen dotanco...@gmail.com wrote: On Tue, Dec 28, 2010 at 21:57, Nathan Rixham nrix...@gmail.com 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

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

2010-12-28 Thread Peter Lind
On 28 December 2010 22:06, Daniel Brown danbr...@php.net wrote: On Tue, Dec 28, 2010 at 16:05, Dotan Cohen dotanco...@gmail.com 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

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

2010-12-17 Thread Peter Lind
On Friday, 17 December 2010, Simon J Welsh si...@welsh.co.nz 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

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

Re: [PHP] ORM doctrine

2010-12-12 Thread Peter Lind
On Sunday, 12 December 2010, Tommy Pham tommy...@gmail.com 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 I understand cache well, both

Re: [PHP] ORM doctrine

2010-12-12 Thread Peter Lind
On Sunday, 12 December 2010, Tommy Pham tommy...@gmail.com 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: Your posts seem to indicate

Re: [PHP] ORM doctrine

2010-12-12 Thread Peter Lind
On Sunday, 12 December 2010, Tommy Pham tommy...@gmail.com 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: Your posts seem to indicate

Re: [PHP] ORM doctrine

2010-12-12 Thread Peter Lind
On Sunday, 12 December 2010, Lester Caine les...@lsces.co.uk 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't just

Re: [PHP] ORM doctrine

2010-12-11 Thread Peter Lind
On Friday, 10 December 2010, Tommy Pham tommy...@gmail.com 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,

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

2010-12-02 Thread Peter Lind
2010/12/2 Michael Crowl octo...@serv.net: * 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

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

2010-11-26 Thread Peter Lind
On Saturday, November 27, 2010, Richard West p...@cbnisp.com 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] PHP Add +1 mysql updates by 2?

2010-11-26 Thread Peter Lind
, Peter Lind wrote: On Saturday, November 27, 2010, Richard West p...@cbnisp.com 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

Re: [PHP] is this thing on??

2010-11-23 Thread Peter Lind
On 23 November 2010 20:52, Steve Staples sstap...@mnsi.net 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

Re: [PHP] Procedural Autoloader?

2010-11-22 Thread Peter Lind
On 22 November 2010 22:40, Daniel P. Brown daniel.br...@parasane.net wrote: On Mon, Nov 22, 2010 at 16:31, Nathan Nobbe quickshif...@gmail.com wrote: Shrug, if you want to really be dirty about it, you could just put a 'class' atop each file of functions. ?php class

Re: [PHP] DOMDocument/DOMElement problem

2010-11-17 Thread Peter Lind
On 16 November 2010 21:30, Adam Richardson simples...@gmail.com 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

[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

Re: [PHP] Template engines

2010-11-08 Thread Peter Lind
On 8 November 2010 22:59, Michael Shadle mike...@gmail.com wrote: On Mon, Nov 8, 2010 at 1:41 PM, Hansen, Mike mike.han...@atmel.com 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?

Re: [PHP] Template engines

2010-11-08 Thread Peter Lind
On 9 November 2010 06:20, Paul M Foster pa...@quillandmouse.com 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

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 comme...@traduction.biz wrote: Hi Thijs, :-) On Wed, Nov 3, 2010 at 18:18, Thijs Lensselink d...@lenss.nl wrote: As far as I know it is not

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 comme...@traduction.biz wrote: Hi Peter, :-) On Wed, Nov 3, 2010 at 18:44, Peter Lind peter.e.l...@gmail.com wrote: You can

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

2010-10-21 Thread Peter Lind
On 21 October 2010 04:59, David McGlone da...@dmcentral.net 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

Re: [PHP] Reminder On Mailing List Rules

2010-10-21 Thread Peter Lind
On 21 October 2010 16:25, Daniel Brown danbr...@php.net 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

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 -- hype WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: kafe15 /hype -- 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 14:40, Bob McConnell r...@cbord.com 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 -0400,

Re: [PHP] which one is faster

2010-10-06 Thread Peter Lind
On 6 October 2010 15:31, Andy McKenzie amckenz...@gmail.com 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

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

2010-10-04 Thread Peter Lind
On 4 October 2010 11:30, Col Day colind...@aol.com 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

Re: [PHP] Re: Friday's Post

2010-10-02 Thread Peter Lind
On 1 October 2010 20:21, Per Jessen p...@computer.org 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 about deployed lines of code or some

Re: [PHP] Re: Friday's Post

2010-10-02 Thread Peter Lind
On 2 October 2010 11:05, Per Jessen p...@computer.org wrote: Peter Lind wrote: On 1 October 2010 20:21, Per Jessen p...@computer.org 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

Re: [PHP] Re: Friday's Post

2010-10-01 Thread Peter Lind
On 1 October 2010 17:11, Bob McConnell r...@cbord.com 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 its

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) ani...@mail.com wrote: Peter Lind wrote: On 23 September 2010 21:47, YAD(YetAnotherDavid) ani...@mail.com wrote: This code is 95% cut and paste from the PHP manual examples - the Types/Strings/Heredocs section and the Filesystem/fnmatch pages

Re: [PHP] Re: Copying an Object

2010-09-25 Thread Peter Lind
On 25 September 2010 00:11, Daniel Kolbo dko...@gmail.com wrote: On 9/24/2010 8:35 AM, Peter Lind wrote: On 24 September 2010 14:22, Bob McConnell r...@cbord.com wrote: From: David Hutto On Fri, Sep 24, 2010 at 4:09 AM, Gary php-gene...@garydjones.name wrote: Daniel Kolbo wrote: Say you

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) ani...@mail.com 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

Re: [PHP] Re: Copying an Object

2010-09-24 Thread Peter Lind
On 24 September 2010 14:22, Bob McConnell r...@cbord.com wrote: From: David Hutto On Fri, Sep 24, 2010 at 4:09 AM, Gary php-gene...@garydjones.name 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.  

Re: [PHP] Copying an Object

2010-09-23 Thread Peter Lind
On 23 September 2010 02:14, Daniel Kolbo kolb0...@umn.edu 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

Re: [PHP] Database Administration

2010-09-21 Thread Peter Lind
On 21 September 2010 11:48, Tom Barrett t...@miramedia.co.uk 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,

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Peter Lind
On 20 September 2010 21:56, Andy McKenzie amckenz...@gmail.com wrote: On Mon, Sep 20, 2010 at 3:50 PM, Rick Pasotto r...@niof.net wrote: On Mon, Sep 20, 2010 at 03:02:35PM -0400, TR Shaw wrote: On Sep 20, 2010, at 2:56 PM, Andy McKenzie wrote: Hey folks,  I have the feeling this is a

Re: [PHP] GD Watermark Question

2010-09-19 Thread Peter Lind
On 19 September 2010 16:05, tedd tedd.sperl...@gmail.com wrote: At 6:03 PM -0400 9/17/10, Gary wrote: Is there a way to insert a watermark on an image as it is being uploaded to the image file, then removed when it is called from a database to be viewed on a website? The rational behind

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Peter Lind
On 16 September 2010 16:26, Cheryl Sullivan csull...@shh.org wrote: Absolutely - This is from the first page ?php $_SESSION['UserLastName'] = strtolower(trim($_POST['txtLastName'])); $_SESSION['BadgeID'] = trim($_POST['txtBadgeID']); //access MS SQL Server database $q1 = select

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Peter Lind
On 16 September 2010 20:03, Cheryl Sullivan csull...@shh.org wrote: We are actually running the query through a function that removes single ticks, etc to avoid this, but I didn't think that was relevant to the question so I didn't include it.  Thanks, though! You're the one with the problem

Re: [PHP] How to store data that doesn't change?

2010-09-15 Thread Peter Lind
On 15 September 2010 14:46, Peter van der Does pvanderd...@gmail.com wrote: Hi, How do you people store data that doesn't change, an example of this would be the version number of your software. You might want to use it through out your program but how to you store it? As far as I can see

  1   2   3   4   >