Thanks heaps for your help
I am getting internal errors or no errors and no html file

I have 777 the dir where I want the html file to be created which contains the txt's
I think it may be because I dont have the server path as I am using a webhost and there is no info.
Is it possible just to use the web address as the dir path?