If that were to actually work, the /fopen and /fclose would have to be outside of the script.