Main > Programming > Libraries >

php-js 0.1.2

php-js 0.1.2

Sponsored Links

php-js 0.1.2 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.13 MB
Platform: Any Platform
License: The PHP License
Price:
Downloads: 1288
Date added: 2006-04-17
Publisher: Omar Kilani

php-js 0.1.2 description

php-js application is an experimental PHP extension which embeds the Mozilla SpiderMonkey JavaScript engine into PHP.
Installation and Usage:
A simple ./configure; make; make install should do the trick. Make sure to add an extension=js.so line to your php.ini/php.d. Note: you need to install libjs first. If youre using a Redhat-esque system, you can use the SRPM provided above, else, use the TBZ.
Then, just use js_eval to evaluate your JavaScript. js_eval returns the value returned by the JavaScript interpreter to PHP.
For example:
js_eval("var a = 123;");
js_eval("var b = 456;");
$c = js_eval("[a, b];");
echo "a is ".$c[0]."n";
echo "b is ".$c[1]."n";
js_eval("var sum = function(x, y) { return x + y; }");
$d = js_eval("sum(a, b);");
echo "The sum of a and b is ".$d."n";
Would produce:
a is 123
b is 456
The sum of a and b is 579
js_eval takes an optional boolean argument, assoc, which returns objects as associative arrays instead of PHP objects.
The php-js execution environment provides two built-in JavaScript system functions:
print
gc
print outputs its argument to the php output stream.
gc forces garbage collection within the JavaScript environment.
Enhancements:
- A session shutdown issue has been fixed.
- There is better handling of null objects.

php-js 0.1.2 Screenshot

Advertisements

php-js 0.1.2 Keywords

Bookmark php-js 0.1.2

Hyperlink code:
Link for forum:

php-js 0.1.2 Copyright

WareSeeker periodically updates pricing and software information of php-js 0.1.2 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of php-js 0.1.2 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
php-json is an extremely fast PHP C extension for JSON (JavaScript Object Notation) serialisation. Free Download
PHP-Qt is an extension for PHP 5.1 that makes it possible to write software with the Qt toolkit. Free Download
PAJAX is a framework that facilitates the creation of remote PHP objects in JavaScript. Free Download
php-sqlite3 is a PHP extension that lets you access SQLite3 databases within your scripts. Free Download
php-kadm5 is a PHP extension for remote administration of Kerberos V servers. Free Download
PHP2Go is a development framework designed to help experienced developers and beginner programmers to create Web-based Systems. Free Download
PHPEclipse is a PHP support for the Eclipse IDE Framework. Free Download
Sajax is a simple toolkit to expose functions in your PHP scripts as JavaScript stubs. Free Download