|
Posted by Gary L. Burnore on 10/21/07 13:48
On Sun, 21 Oct 2007 04:11:50 GMT, Tim Roberts <timr@probo.com> wrote:
>Jerry Stuckle <jstucklex@attglobal.net> wrote:
>
>>Tim Roberts wrote:
>>>
>>> You missed the point. ...
>>> PHP's rules are different. Not better, not worse. Just different.
>>
>>No, you missed the point.
>>
>>Compilation is not the same as execution. When PHP is executed, it's
>>include statement works just alike any file operation in C/C++ when that
>>program is executed.
>>
>>Just because they are both "include" statements does not mean they are
>>the same. In PHP they are executed. In C/C++ they are handled by the
>>preprocessor. Completely different environment with completely
>>different results.
>
>Nonsense.
Hardly nonsense. In C, the file is included at preproc time, not
EXECUTED then. In php, the contents are executed at the line the
include is called.
If the file included has just a single statement like:
<?php
ehco "Hello world\n";
?>
Then that's echoed at that very moment. That doesn't happen when the
c preprocessor includes source from a file into a c program.
>The distinction between compilation and interpolation is
>entirely artificial. PHP can be compiled, just as C can be interpreted.
>We're talking about source files including other source files.
No, actually not.
--
gburnore at DataBasix dot Com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
Official .sig, Accept no substitutes. | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ 0 1 7 2 3 / Ý³Þ 3 7 4 9 3 0 Û³
Black Helicopter Repair Services, Ltd.| Official Proof of Purchase
===========================================================================
[Back to original message]
|