I have run PHP scripts on the same hosting before, I am not sure what version - but have asked my ISP to let me know
The reason I asked is that it works ok on my testing server, and as it is displaying as plain text in a browser this normally indicates that the server recognizes php as a file extension but does not process the php code, (php not installed or disabled).
Hi Yes spot on , My host had downgraded my hosting package on renewal !! So I have now resolved with them.
Thank you very much for testing it on your server, much appreciated.