Re: [PHP] Silly question - include vs. eval

2009-03-12 Thread Robert Cummings
On Wed, 2009-03-11 at 19:50 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 16:16 -0500, Shawn McKenzie wrote: Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at

[PHP] Silly question - include vs. eval

2009-03-11 Thread HostWare Kft.
Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please, let me know. Thanks, SanTa

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 13:07 +0100, Sándor Tamás (HostWare Kft.) wrote: Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please, let me know. Use include since it allows a cache like eAccelerator

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 08:33 -0400, Robert Cummings wrote: On Wed, 2009-03-11 at 13:07 +0100, Sándor Tamás (HostWare Kft.) wrote: Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please,

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Virgilio Quilario
Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please, let me know. Use include since it allows a cache like eAccelerator or APC to work. Eval never gets cached. Also, include let's the engine

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 20:49 +0800, Virgilio Quilario wrote: Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please, let me know. Use include since it allows a cache like eAccelerator or

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread HostWare Kft.
To: Virgilio Quilario virgilio.quila...@gmail.com Cc: Sándor Tamás (HostWare Kft.) sandorta...@hostware.hu; php-general@lists.php.net Sent: Wednesday, March 11, 2009 1:55 PM Subject: Re: [PHP] Silly question - include vs. eval On Wed, 2009-03-11 at 20:49 +0800, Virgilio Quilario wrote: Hi, I

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 14:03 +0100, Sándor Tamás (HostWare Kft.) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it correctly, the results are the same. But! If the

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it correctly, the results are the same. But! If the included pages contain functions,

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Kyle Terry
On Wed, Mar 11, 2009 at 10:19 AM, Shawn McKenzie nos...@mckenzies.netwrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it correctly, the results are

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 16:16 -0500, Shawn McKenzie wrote: Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Robert Cummings wrote: On Wed, 2009-03-11 at 16:16 -0500, Shawn McKenzie wrote: Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft .