I haven't studied the details of this implementation, but they
generally work something like this.

(Apache is only being used as an example, this could be a different
web server, the details would change, but the principle remains the
same)

In normal use Apache has a module that detects the .php extension and
passes execution to the php interpreter.

With a scheme like this Apache would pass control to compiled version
of the page instead.

This could be global (for all .php on the machine) or could be managed
through mod rewrite or similar.

Depending on the implementation, the compiled version could be an
Apache module loaded with Apache or could be an external executable
that Apache launches on demand.

Bruce


On 3 February 2010 13:54, Aaron Cooper <[email protected]> wrote:
> I get the concept, I follow the benefits, but I can't quite get my head
> around the usage of this.
>
> I understand fully what Roadsend is for, but how does this apply to PHP
> pages serving XHTML to a browser?
>
> For instance, where does www.facebook.com/home.php fit into all this? Or any
> public front-facing application page for that matter?
>
> ----- Original Message ----- From: "Bruce Clement"
> <[email protected]>
> To: <[email protected]>
> Sent: Wednesday, February 03, 2010 1:35 PM
> Subject: Re: [phpug] hiphop php to c++
>
>
> On 3 February 2010 13:24, Sid Bachtiar <[email protected]> wrote:
> ...
>>
>> to lower level codes. I guess I should have said anything that is
>> comparable to what Facebook is doing with HipHop.
>
> Well, having RTFA (Original facebook blog), I hope I won't lose too
> many geek points by quoting it "Even compiling PHP isn't a new idea,
> open source projects like Roadsend and phc compile PHP to C, Quercus
> compiles PHP to Java, and Phalanger compiles PHP to .Net."
>
>
> --
> Bruce Clement
>
> When a co-worker said he didn't want his kids getting the H1N1 vaccine
> because it was too new and "they haven't tested it enough", I blurted
> out something like, "So you'd rather test a new and poorly understood
> virus on them instead?"
>
> I'm not entirely proud of fighting vague and irrational fear of the
> unknown by invoking vague and irrational fear of the unknown, but I
> think it did make an impression.
>
> Petréa Mitchell
>
> --
> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> To post, send email to [email protected]
> To unsubscribe, send email to
> [email protected]
>
> --
> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> To post, send email to [email protected]
> To unsubscribe, send email to
> [email protected]
>



-- 
Bruce Clement

When a co-worker said he didn't want his kids getting the H1N1 vaccine
because it was too new and "they haven't tested it enough", I blurted
out something like, "So you'd rather test a new and poorly understood
virus on them instead?"

I'm not entirely proud of fighting vague and irrational fear of the
unknown by invoking vague and irrational fear of the unknown, but I
think it did make an impression.

Petréa Mitchell

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to