the last error is caused by the first errors, and the first errors are caused because you dont have the right permissions set up for your script to be able to write to visitors.txt
I just checked, and both of the php files on my old hosting and new hosting have the same permission values!
if you have shell access you can use the chmod command to change the permissions on the file. chmod 666 visitors.txt Code (markup): or similar. alternately the visitors.txt file could be missing, so verify that it even exists