use a php wrapper script.