News Feed
Sections




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

Zend Developer Zone:
Using JavaScript in PHP with PECL and SpiderMonkey
June 04, 2009 @ 12:06:38

On the Zend Developer Zone today there's a new tutorial from Vikram Vaswani about using the Spidermonkey Javascript engine together with the PECL extension for it to create a few simple examples.

Not too long ago, it seemed like there was a pretty clear distinction between client-side technologies and server-side technologies. [...] Things aren't that clear any longer. [...] And in this article, I'm going to show you how to add a JavaScript engine to your PHP build, with a little help from PECL's SpiderMonkey extension.

The PHP extension lets you use the libraries (with your PHP 5.3+ installation) to directly create new objects and work with the Javascript like it was PHP. The end result is then passed out to the browser via a "evaluateScript" call. He illustrates how you can use objects and generate XML quickly and easily.

0 comments voice your opinion now!
pecl tutorial spidermonkey javascript


blog comments powered by Disqus

Similar Posts

Stoyan Stefanov's Blog: JS/PHP string concatenation mistype

Community News: Latest PECL Releases for 10.10.2006

TechChorus Blog: Create RESTful Applications Using The Zend Framework - Part II: Using HTTP Response

SitePoint PHP Blog: Where are you? Implementing geolocation with Geocoder PHP

Oracle Technology Network: DeployPHP Series, Part 5 - Zend Core for Oracle Quick Start


Community Events





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


community interview introduction configure release opinion threedevsandamaybe conference framework laravel symfony series voicesoftheelephpant language podcast unittest api list version composer

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