change shell_exec to fopen, for some limit