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 a

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 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 Rixha

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 O

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:

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

[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] 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: Peter

[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 - bl

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 wrote: > > > Lester Caine wrote: > >> N

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:

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" Date: Sun, Dec 12, 2010 18:56

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:2

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] ORM doctrine

2010-12-12 Thread Adam Richardson
On Wed, Dec 8, 2010 at 10:02 PM, Tommy Pham 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, > Tommy

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 Bastien
On 2010-12-12, at 11:45 AM, 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

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 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 interprete

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 O'Reill

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 The reason for 'caching' needs to be understood before it is applied in order

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 > > > > > The reason for 'caching' needs to be understood before it is applied in > orde

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 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't just be > slapped on to you

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: >> > Your posts seem to indicate that caches

[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 legacy

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

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 > wrote: > >> -Original Message- >

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 cla

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: >> > Your posts seem to indicate that caches

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 be

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 > wrote: > >> -Original Message- > >> From: Peter

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 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 >> >> > I understand cache well, both the benefit

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, ma

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