Re: [PHP] Optimization of PHP Code

2008-07-20 Thread Eric Butera
On Fri, Jul 18, 2008 at 2:38 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2008-07-18 at 21:33 +0300, Sancar Saran wrote: And one thing. (1). It is very convenient to pre-process static information at compile time rather than on every request (specific properties, content chunks,

[PHP] Optimization of PHP Code

2008-07-18 Thread Manoj Singh
Hello All, I am developing the web site in PHP using MYSQL database. Can you please provide me some tips to write the optimized code. Best Regards, Manoj Kumar Singh

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Stephen
Manoj Singh wrote: I am developing the web site in PHP using MYSQL database. Can you please provide me some tips to write the optimized code. Hard to be specific without a more detailed understanding of what you are going to do. But in general, use the newer PDO class instead of the older

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Schiz0
On Fri, Jul 18, 2008 at 8:53 AM, Manoj Singh [EMAIL PROTECTED] wrote: Hello All, I am developing the web site in PHP using MYSQL database. Can you please provide me some tips to write the optimized code. Best Regards, Manoj Kumar Singh A opcode cacher helped me a lot on my site. I got

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Sancar Saran
On Friday 18 July 2008 15:53:06 Manoj Singh wrote: Hello All, I am developing the web site in PHP using MYSQL database. Can you please provide me some tips to write the optimized code. Best Regards, Manoj Kumar Singh Premature optimization as root of all evil. Use less sql connection as

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Aschwin Wesselius
Sancar Saran wrote: On Friday 18 July 2008 15:53:06 Manoj Singh wrote: Hello All, I am developing the web site in PHP using MYSQL database. Can you please provide me some tips to write the optimized code. Best Regards, Manoj Kumar Singh Premature optimization as root of all evil.

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Eric Butera
On Fri, Jul 18, 2008 at 9:52 AM, Aschwin Wesselius [EMAIL PROTECTED] wrote: Sancar Saran wrote: On Friday 18 July 2008 15:53:06 Manoj Singh wrote: Hello All, I am developing the web site in PHP using MYSQL database. Can you please provide me some tips to write the optimized code. Best

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Robert Cummings
On Fri, 2008-07-18 at 16:47 +0300, Sancar Saran wrote: Do not use, template system, use inline php code for templates. Oh dear... you must subscribe to FUD 101. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Eric Butera
On Fri, Jul 18, 2008 at 11:43 AM, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2008-07-18 at 16:47 +0300, Sancar Saran wrote: Do not use, template system, use inline php code for templates. Oh dear... you must subscribe to FUD 101. ??? I use straight php files for my templates. My

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Robert Cummings
On Fri, 2008-07-18 at 12:35 -0400, Eric Butera wrote: On Fri, Jul 18, 2008 at 11:43 AM, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2008-07-18 at 16:47 +0300, Sancar Saran wrote: Do not use, template system, use inline php code for templates. Oh dear... you must subscribe to FUD

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Sancar Saran
On Friday 18 July 2008 18:43:43 Robert Cummings wrote: On Fri, 2008-07-18 at 16:47 +0300, Sancar Saran wrote: Do not use, template system, use inline php code for templates. Oh dear... you must subscribe to FUD 101. Cheers, Rob. -- http://www.interjinn.com Application and Templating

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Robert Cummings
On Fri, 2008-07-18 at 20:32 +0300, Sancar Saran wrote: On Friday 18 July 2008 18:43:43 Robert Cummings wrote: On Fri, 2008-07-18 at 16:47 +0300, Sancar Saran wrote: Do not use, template system, use inline php code for templates. Oh dear... you must subscribe to FUD 101. Cheers,

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Sancar Saran
And one thing. (1). It is very convenient to pre-process static information at compile time rather than on every request (specific properties, content chunks, content relocation, etc). Additionally, it can compile to static HTML, One of my sites using 3rd party as data source (via xml).

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Robert Cummings
On Fri, 2008-07-18 at 21:33 +0300, Sancar Saran wrote: And one thing. (1). It is very convenient to pre-process static information at compile time rather than on every request (specific properties, content chunks, content relocation, etc). Additionally, it can compile to static HTML,