Skip to content

Instantly share code, notes, and snippets.

@jbenesch jbenesch/example.php
Created Nov 25, 2016

What would you like to do?
Evaluate a string of javascript in php
echo shell_exec("/usr/local/bin/node ./test.js " . json_encode(array('foo' => 'bar')));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.