Set up config.txt file in php rather than python