Stuart wrote:
2009/3/1 Shawn McKenzie <>

Stuart wrote:
2009/2/28 Shawn McKenzie <>

Robert Cummings wrote:
On Sat, 2009-02-28 at 00:11 +0000, Ashley Sheridan wrote:
On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote:
On Sat, 2009-02-28 at 00:02 +0600, 9el wrote:
Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live.
a Free CD of Ubuntu mailed to your door without any cost. Visit :


On Fri, Feb 27, 2009 at 11:46 PM, Robert Cummings <>wrote:
On Fri, 2009-02-27 at 09:28 -0700, LuKreme wrote:
On Feb 27, 2009, at 6:12, Hans Schultz <>
Hahahah,I was thinking the same thing
The trouble is most people mean "compile a source file to an
executable binary" when they sat compile. By this measure, PHP
not compile.
I add the following to the top of my PHP shell scripts:

   #!/usr/bin/php -qC

Then I do the following:

   chmod 775 script.php

Then I run it as follows:


Look... and executable binary :) Don't say it's not binary. All
a hard disk is binary (although I do know what you mean ;)
Well you are running shell script style execution its not example of
Compiled code or Binary

The data in the file is ASCII or UTF text :)
Which are subsets of binary representation ;)

Compilation happens when its zendOptimized or OpCoded. Its then is
into binary content file.
But one could probably quite easily set up a system whereby
or APC or Zend Optimizer cache bytecodes are torn from a file run
similarly. As I said in an earlier post... the line between the
definition of interpreted language and compiled language is quite
these days.

Application and Templating Framework for PHP

ASCII is only a subset of binary in a pedantic, literal sense. When
people say binary file, they mean one that contains characters which
outside the normal display spectrum, such as chr(0), etc.
And the argument that PHP is not compiled requires a certain level of
pedantry and it is still an incorrect argument since it most certainly
is compiled to an intermediary virtual machine code.

Still, in PHP $compile_time == $run_time.

I haven't been following this thread, but this caught my eye as being
completely wrong. There are distinct compile and execution phases when
runs a script, and different rules apply to each. If you don't believe me
try defaulting the value of a class variable to the result of a function.


Rob, I wasn't talking about time.  I was talking about they're pretty
much the same as in when they execute.


Great, then show the OP how he can enforce strict error checking at
compile time and halt compilation and runtime altogether.

Like I said I haven't been following this thread so have no idea what the
original question was. I was just pointing out that your assertion
that $compile_time == $run_time is incorrect.

As far as error checking goes the PHP engine performs syntactical checks
during compile time but due to the highly flexible nature of the language
it's not possible to do most error checking until runtime.


And I quote:

I am beginner with PHP and prior to PHP I have worked with java for some time
and with perl for very short period. I can't help to notice some things that
are little annoyance for me with PHP, but I am sure someone more experienced
can help me :-)
Is there in PHP something like "use strict" from perl? I find it pretty
annoying to need to run script over and over again just to find out that I
made typo in variable name.
Is there some way for PHP to cache some data on the page? I like very much
PHP's speed but it would be even better to be able to cache some frequently
used data from database?
Also regarding databases, I liked a lot java's way of sending data to database
using parameters ("select * from user where username = ?" and then passing
parameter separately with database doing necessary escaping and everything).
Is there something like PHPDBC similar to JDBC?


End Quote;

Jim Lucas

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to