diff --git a/docker/php/run.sh b/docker/php/run.sh index 3e5631f..6048485 100644 --- a/docker/php/run.sh +++ b/docker/php/run.sh @@ -1 +1,6 @@ -printf %s "$1" | php -r || true +mkdir "$CODEDIR" && cd "$CODEDIR" + +printf %s "$1" > program.php +php program.php || true + +cd .. && rm -rf "$CODEDIR"