#!/bin/sh # shell wrapper to run php code # (c) 2005 Elan Ruusamäe for s in /usr/bin/php{,4}; do [ -x $s ] && exec $s -d output_buffering=1 "$0" ${1:+"$@"} done echo >&2 "Can't find PHP-CLI!" exit 1 # start php code