diff options
author | dvs1 | 2024-10-28 13:37:20 +1000 |
---|---|---|
committer | dvs1 | 2024-10-28 13:37:20 +1000 |
commit | f220cac192399c74d0309f75d8e3963ab7702cd6 (patch) | |
tree | dbeb1e45203d72fcb9718be2b3a041c1d43d93b5 | |
parent | This is documenting STOP not stop. (diff) | |
download | JackOnAllDevices-f220cac192399c74d0309f75d8e3963ab7702cd6.zip JackOnAllDevices-f220cac192399c74d0309f75d8e3963ab7702cd6.tar.gz JackOnAllDevices-f220cac192399c74d0309f75d8e3963ab7702cd6.tar.bz2 JackOnAllDevices-f220cac192399c74d0309f75d8e3963ab7702cd6.tar.xz |
Fix the PHP example.
Diffstat (limited to '')
-rwxr-xr-x | PolygLua.lua | 2 | ||||
-rwxr-xr-x | test_.lua | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/PolygLua.lua b/PolygLua.lua index ee775eb..727e62c 100755 --- a/PolygLua.lua +++ b/PolygLua.lua | |||
@@ -209,6 +209,8 @@ __ = function(c) | |||
209 | exe.scriptFile = os.tmpname() | 209 | exe.scriptFile = os.tmpname() |
210 | D('Creating temporary script file at ' .. exe.scriptFile) | 210 | D('Creating temporary script file at ' .. exe.scriptFile) |
211 | exe.cmd = exe.cmd .. l:sub(3) .. ' ' .. exe.scriptFile .. ' ; ' | 211 | exe.cmd = exe.cmd .. l:sub(3) .. ' ' .. exe.scriptFile .. ' ; ' |
212 | -- PHP wants this to be executable. | ||
213 | __('chmod u+x ' .. exe.scriptFile) | ||
212 | end | 214 | end |
213 | exe.script = exe.script .. l .. '\n' | 215 | exe.script = exe.script .. l .. '\n' |
214 | else | 216 | else |
@@ -121,11 +121,9 @@ __[[#!/usr/bin/perl | |||
121 | ]]:log():show():Do() | 121 | ]]:log():show():Do() |
122 | print('') | 122 | print('') |
123 | 123 | ||
124 | -- No idea why this isn't working. | 124 | __[[#!/usr/bin/env php |
125 | __[[#!/usr/bin/php | ||
126 | <?php | 125 | <?php |
127 | print("Hello world from PHP."); | 126 | print("G'day world from php.\n"); |
128 | ?> | ||
129 | ]]:log():show():Do() | 127 | ]]:log():show():Do() |
130 | print('') | 128 | print('') |
131 | 129 | ||