News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

We Love PHP Blog:
Using V8 Javascript engine as a PHP extension
July 25, 2012 @ 11:50:36

From the "Web Love PHP" blog there's a new post showing how to use the V8 Javascript engine as a PHP extension in your application.

Just got to something described as: This extension embeds the V8 Javascript Engine into PHP. It is called v8js and the documentation is already available on php.net, examples and the sources are here. V8 is known to work well in browsers and webservers like node.js, but does it work inside PHP? YES!

They show how to get it installed (on Ubuntu) via a PECL install and a test script with some Javascript in a string variable that's parsed by the "executeString" function on a V8 object. There's also an example of how you can mix the functionality between the two - a simple script that uses a PHP PDO object fron inside the Javascript to perform a SQL query and set some information into the session.

0 comments voice your opinion now!
v8 javascript extension integration tutorial


blog comments powered by Disqus

Similar Posts

Enrico Zimuel's Blog: PHP session sharing using Zend Server CE and MS SQL Server

Jani Hartikainen's Blog: What is a null object, and when are they useful?

MSBWare.com: Integrating FCKeditor With Your MySQL Database

ITNewb.com: Building a Spam Free Contact Form without Captchas

Zend Developer Zone: Getting started with CouchDB : meet PHP on Couch


Community Events





Don't see your event here?
Let us know!


threedevsandamaybe testing framework language community refactor code series laravel developer symfony2 introduction release list install podcast unittest opinion interview api

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework