UNPKG
ph7
Version:
latest (0.1.3)
0.1.3
0.1.1
0.1.0
In-Process PHP execution for NodeJS
github.com/Deskshell-Core/node-ph7
Deskshell-Core/node-ph7
ph7
/
examples
/
test.js
12 lines
(8 loc)
•
234 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
var
ph7 =
require
(
"../"
);
var
pVM = ph7.
create
(); pVM.
$SGLOBALS
[
'Deskshell'
]=
"A soon to be sdk :)"
;
var
pfile = __dirname+
"/test.php"
;
console
.
log
(
"--> Going to run php file: "
+pfile); pVM.
compileFile
(pfile); pVM.
prepair
();
pVM
();