Thanks for the advice, however it doesn't seem to make any difference. When I checked the for the file it created it sometimes with the values in it sometimes not.
What's really weird is that I eventually got it working on the test server. When I moved it to the live server it stopped working. Unfortunately I had altered the files before moving and so it no longer works on the test server either 🙁
Has anyone got any suggestions on any other method to do this. i.e. Bounce people out if they come from a certain IP address and let everyone else in and also stop bookmarking?
thanks in advance for any help
Neil