This library readsPHP code and transformsit intoJavaScript code which can be run in thePHP VM in this library, resulting in same results as withPHP.It starts by tokenizing thePHP code into tokens, whichit then uses tobuild an AST tree. Once the tree has been constructed, the script compilesit intoJavaScript that can be interpreted by the VM and then executesit. Any additional unconvert
はじめまして。2009年に新卒で入社しました天野祐介です。amachang を期待された方はゴメンナサイ! 先日 SpiderMonkey を利用してPHP からJavaScript を実行する方法を調べる機会がありましたので、ご紹介します。 SpiderMonkey とは SpiderMonkey は C で実装された Mozilla のJavaScript エンジンです。 これをPHP から実行する拡張を利用すると、PHP コード内でJavaScript が実行できます。 SpiderMonkey extension のインストール こちらhttp://devzone.zend.com/article/4704に記載されている方法で CentOS にインストールしてみました。PHP 5.3.0 以上が必要です。 $ wget http://ftp.mozilla.org

1リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く