I'm having major trouble with a PHP script which is accessed through a forcetype definition in a .htaccess file in the same folder. When I run the file through the forcetype file path, it gives me the following error: Parse error: parse error, unexpected $ in 'file' on line 246 But then when i change the contents of the file to a normal PHP file, it works fine and as expected, with no errors at all. I have isolated the problem code, and have tried putting it in a function to bypass the error, but it still doesn't work. Because it works as a PHP file, I believe that the problem lies in the apache side of things. Can anyone help, or has anyone had a similar problem before. All help is greatly appreciated. ;)