PHP proxy, bash script