php-general Digest 12 Dec 2010 18:24:43 -0000 Issue 7083

2010-12-12 Thread php-general-digest-help
php-general Digest 12 Dec 2010 18:24:43 - Issue 7083 Topics (messages 309964 through 309985): Re: ORM doctrine 309964 by: Peter Lind 309965 by: Tommy Pham 309966 by: Peter Lind 309967 by: Lester Caine 309968 by: Tommy Pham 309969 by: Tommy

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 Tommy Pham
-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 the benefits (save DB trip) and shortfalls (outdated by DB, management,

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 the

Re: [PHP] ORM doctrine

2010-12-12 Thread Lester Caine
Peter Lind wrote: Your posts seem to indicate that caches are only useful when other parts of the app have been done wrong. My point was that this is a fairly fundamental misunderstanding of caches - regardless of what you are or aren't capable of optimizing. CHACHES are only useful when there

RE: [PHP] ORM doctrine

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

RE: [PHP] ORM doctrine

2010-12-12 Thread Tommy Pham
-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 that caches are only useful when other parts of the app have been done

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 that

Re: [PHP] code quest - ECHO?!?

2010-12-12 Thread David Robley
Kirk Bailey wrote: Ok, so what is echo, and how is it different from print. The code in code quest used echo. I have a copy of learning php 5.0 from O'Reilly, and noplace does it mention echo. Why? What's the difference? IS there a difference? Is there an advantage to either? Please clarify

RE: [PHP] ORM doctrine

2010-12-12 Thread Tommy Pham
-Original Message- From: Peter Lind [mailto:peter.e.l...@gmail.com] Sent: Sunday, December 12, 2010 3:05 AM To: Tommy Pham Cc: Lester Caine; php-general List Subject: Re: [PHP] ORM doctrine On Sunday, 12 December 2010, Tommy Pham tommy...@gmail.com wrote: -Original

Re: [PHP] ORM doctrine

2010-12-12 Thread Lester Caine
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 be slapped on to your app after development. Data caching SHOULD always be

[PHP] Re: Announcing New PHP Extension: FileConv

2010-12-12 Thread Nathan Rixham
Nice one Dan, and thanks! :) Daniel Brown wrote: Happy Saturday, folks; I've finally gotten around to releasing my latest PHP extension (which was actually written about two years ago). Named FileConv, it adds native functions for converting back and forth between DOS, *NIX, 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: 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 that

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 be

Re: [PHP] ORM doctrine

2010-12-12 Thread Nathan Rixham
Hi All, Apologies for wading in to this discussion, however I must point out that caching at every level is very very important. As Peter says, caching is not an optimization to be thought of later, it is not the icing on the cake, rather, caching is one of the most critical design factors,

RE: [PHP] ORM doctrine

2010-12-12 Thread Tommy Pham
-Original Message- From: Peter Lind [mailto:peter.e.l...@gmail.com] Sent: Sunday, December 12, 2010 5:27 AM To: Lester Caine Cc: php-general@lists.php.net Subject: Re: [PHP] ORM doctrine snip The reason for 'caching' needs to be understood before it is applied in order to

Re: [PHP] ORM doctrine

2010-12-12 Thread Nathan Rixham
Tommy Pham wrote: -Original Message- From: Peter Lind [mailto:peter.e.l...@gmail.com] Sent: Sunday, December 12, 2010 5:27 AM To: Lester Caine Cc: php-general@lists.php.net Subject: Re: [PHP] ORM doctrine snip The reason for 'caching' needs to be understood before it is applied in

Re: [PHP] code quest - ECHO?!?

2010-12-12 Thread Kirk Bailey
Groovy; they appear to be identical in all but name. IDENTICAL. Or am I missing a subtle definition difference? David Robley wrote: Kirk Bailey wrote: Ok, so what is echo, and how is it different from print. The code in code quest used echo. I have a copy of learning php 5.0 from

Re: [PHP] ORM doctrine

2010-12-12 Thread Lester Caine
Nathan Rixham wrote: In your application itself, caching can be introduced at every level, you've already got filesystem io caches provided by the operating system, a well tuned db server cache can make a big difference as well, then on to opcode caches in languages like PHP since it's

Re: [PHP] ORM doctrine

2010-12-12 Thread Nathan Rixham
Lester Caine wrote: Nathan Rixham wrote: In your application itself, caching can be introduced at every level, you've already got filesystem io caches provided by the operating system, a well tuned db server cache can make a big difference as well, then on to opcode caches in languages like PHP

Re: [PHP] ORM doctrine

2010-12-12 Thread Bastien
On 2010-12-12, at 11:45 AM, Nathan Rixham nrix...@gmail.com wrote: Lester Caine wrote: Nathan Rixham wrote: In your application itself, caching can be introduced at every level, you've already got filesystem io caches provided by the operating system, a well tuned db server cache can make

Re: [PHP] ORM doctrine

2010-12-12 Thread Lester Caine
Nathan Rixham wrote: Lester Caine wrote: Nathan Rixham wrote: In your application itself, caching can be introduced at every level, you've already got filesystem io caches provided by the operating system, a well tuned db server cache can make a big difference as well, then on to opcode caches

Re: [PHP] ORM doctrine

2010-12-12 Thread Adam Richardson
On Wed, Dec 8, 2010 at 10:02 PM, Tommy Pham tommy...@gmail.com wrote: Hi, Has anyone used doctrine before? I know Nathan mentioned it in the other thread but I was wondering how does it handle multi table joins query, about its performance and whether it uses any type of caching. Thanks,

Re: [PHP] ORM doctrine

2010-12-12 Thread Nathan Rixham
Lester Caine wrote: For fixed pages this is the best way of handling the information. And handling those fixed pages is ... from my point of view ... not a problem since they can be cached at that level, or even stored locally in the browser cache. I've just been hitting re-load every time for

Re: [PHP] code quest - ECHO?!?

2010-12-12 Thread Alexandru Patranescu
They are almost identical. Echo supports multiple parameters like echo $a, $b; print is 20% slower than echo (by some tests). echo is shorter than print so it's easy to write. In fact it's all a matter of taste. The same reason we user die instead of exit. Alex On Sun, Dec 12, 2010 at 6:23 PM,

Re: [PHP] code quest - ECHO?!?

2010-12-12 Thread a...@ashleysheridan.co.uk
And the obvious difference, print returns true on success. I'm not sure what would cause an echo it print to ever fail, so it really doesn't make a huge difference. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Alexandru Patranescu dreal...@gmail.com Date: Sun,

RE: [PHP] ORM doctrine

2010-12-12 Thread Tommy Pham
-Original Message- From: Nathan Rixham [mailto:nrix...@gmail.com] Sent: Sunday, December 12, 2010 8:23 AM To: Tommy Pham Cc: 'Peter Lind'; php-general@lists.php.net; 'Lester Caine' Subject: Re: [PHP] ORM doctrine Tommy Pham wrote: -Original Message- From: Peter Lind

RE: [PHP] ORM doctrine

2010-12-12 Thread Tommy Pham
-Original Message- From: Bastien [mailto:phps...@gmail.com] Sent: Sunday, December 12, 2010 9:20 AM To: Nathan Rixham Cc: Lester Caine; php-general List Subject: Re: [PHP] ORM doctrine On 2010-12-12, at 11:45 AM, Nathan Rixham nrix...@gmail.com wrote: Lester Caine wrote:

[PHP] Parsing a phrase

2010-12-12 Thread Rick Dwyer
Hello all. I have a page where the user can enter a search phrase and upon submitting, the search phrase is queried in MySQL. However, I need to modify is so each word in the phrase is searched for... not just the exact phrase. So, big blue hat will return results like: A big hat - blue

Re: [PHP] ORM doctrine

2010-12-12 Thread Nathan Rixham
Tommy Pham wrote: -Original Message- From: Nathan Rixham [mailto:nrix...@gmail.com] Sent: Sunday, December 12, 2010 8:23 AM To: Tommy Pham Cc: 'Peter Lind'; php-general@lists.php.net; 'Lester Caine' Subject: Re: [PHP] ORM doctrine Tommy Pham wrote: -Original Message- From:

[PHP] Re: Parsing a phrase

2010-12-12 Thread Nathan Rixham
Rick Dwyer wrote: Hello all. I have a page where the user can enter a search phrase and upon submitting, the search phrase is queried in MySQL. However, I need to modify is so each word in the phrase is searched for... not just the exact phrase. So, big blue hat will return results like:

Re: [PHP] Re: Parsing a phrase

2010-12-12 Thread Rick Dwyer
Thanks Nathan. The MySQL Match/Against will probably work well... but I would need to somehow add a + to the beginning of each word in the phrase so PHP will still be involved. --Rick On Dec 12, 2010, at 2:51 PM, Nathan Rixham wrote: Rick Dwyer wrote: Hello all. I have a page where

RE: [PHP] ORM doctrine

2010-12-12 Thread Tommy Pham
-Original Message- From: Nathan Rixham [mailto:nrix...@gmail.com] Sent: Sunday, December 12, 2010 11:41 AM To: Tommy Pham Cc: 'Peter Lind'; php-general@lists.php.net; 'Lester Caine' Subject: Re: [PHP] ORM doctrine Tommy Pham wrote: -Original Message- From: Nathan

Re: [PHP] Re: Parsing a phrase

2010-12-12 Thread Rick Dwyer
I have it working now using preg_replace. --Rick On Dec 12, 2010, at 3:50 PM, Rick Dwyer wrote: Thanks Nathan. The MySQL Match/Against will probably work well... but I would need to somehow add a + to the beginning of each word in the phrase so PHP will still be involved. --Rick On

RE: [PHP] ORM doctrine

2010-12-12 Thread Tommy Pham
-Original Message- From: Tommy Pham [mailto:tommy...@gmail.com] Sent: Sunday, December 12, 2010 12:53 PM To: 'nrix...@gmail.com' Cc: 'Peter Lind'; 'php-general@lists.php.net'; 'Lester Caine' Subject: RE: [PHP] ORM doctrine -Original Message- From: Nathan Rixham

Re: [PHP] Scalable Vector Graphics with PHP

2010-12-12 Thread sudarshana sampath
Nathan, Thank you very much for your response, we are going to visualize network management system(topolgy view) with SVG and AJAX. We found a jQuery plugin, following are urls. http://plugins.jquery.com/project/svg http://keith-wood.name/svg.html On Thu, Dec 9, 2010 at 10:50 PM, Nathan Nobbe

Re: [PHP] ORM doctrine

2010-12-12 Thread Lester Caine
Nathan Rixham wrote: For fixed pages this is the best way of handling the information. And handling those fixed pages is ... from my point of view ... not a problem since they can be cached at that level, or even stored locally in the browser cache. I've just been hitting re-load every time for