<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 24 May 2013 09:40:24 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Zend Developer Zone: Using JavaScript in PHP with PECL and SpiderMonkey]]></title>
      <guid>http://www.phpdeveloper.org/news/12626</guid>
      <link>http://www.phpdeveloper.org/news/12626</link>
      <description><![CDATA[<p>
On the Zend Developer Zone today there's <a href="http://devzone.zend.com/article/4704-Using-JavaScript-in-PHP-with-PECL-and-SpiderMonkey">a new tutorial</a> from <i>Vikram Vaswani</i> about using the <a href="http://ftp.mozilla.org/pub/mozilla.org/js/">Spidermonkey</a> Javascript engine together with the <a href="http://pecl.php.net/spidermonkey">PECL extension</a> for it to create a few simple examples.
</p>
<blockquote>
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.
</blockquote>
<p>
The <a href="http://pecl.php.net/spidermonkey">PHP extension</a> 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.
</p>]]></description>
      <pubDate>Thu, 04 Jun 2009 12:06:38 -0500</pubDate>
    </item>
  </channel>
</rss>
