So the only other options are ...
escapeshellcmd — escape shell metacharacters
exec — Execute an external program
passthru — Execute an external program and display raw output
system — Execute an external program and display output
...if I understand correctly.