Re: [nyphp-talk] testing a theory

2007-02-19 Thread CED
Why do you say that the end of file tag is a good standard? - Original Message - From: "Rob Marscher" <[EMAIL PROTECTED]> To: "NYPHP Talk" Sent: Monday, February 19, 2007 11:07 PM Subject: Re: [nyphp-talk] testing a theory > >One day I discovered that I didn't need the "?>"... I c

Re: [nyphp-talk] testing a theory

2007-02-19 Thread Rob Marscher
One day I discovered that I didn't need the "?>"... I could just write This technique is part of the coding standard for the Zend Framework. Seems like a good standard to follow:

Re: [nyphp-talk] testing a theory

2007-02-19 Thread Paul Houle
csnyder wrote: Depending on what q() does (output or return?) it might be more natural to use . Usually in the context of templates I like to see functions returning so that output is completely under my control. Some PHP installations support the short tags and and others don't. If you wa

Re: [nyphp-talk] Best practice for escaping data

2007-02-19 Thread Paul Houle
Randal Rust wrote: The correct process would be to: 1. Run fix_magic_quotes() to ensure that all of the backslashes are removed (if magic_quotes_gpc is on) 2. Run each piece of data through the appropriate function for validation 3. Re-insert the slashes using the database specific function

Re: [nyphp-talk] Shopping cart -- revisited...again...

2007-02-19 Thread inforequest
Cliff Hirsch cliff-at-pinestream.com |nyphp dev/internal group use| wrote: Like many on here, the whole shopping cart thing is a mess to me. So...I just installed litecommerce, which was fairly painless. And changing the templates, which use Flexy, was fairly easy. But deciphering the PHP code

[nyphp-talk] Shopping cart -- revisited...again...

2007-02-19 Thread Cliff Hirsch
Like many on here, the whole shopping cart thing is a mess to me. So...I just installed litecommerce, which was fairly painless. And changing the templates, which use Flexy, was fairly easy. But deciphering the PHP code is a nightmare. Who ever said OOP is easy? It just seems to obfuscate the mean