Yeah ppl thanks for the responses. @RodG thanks, I had tried that as well as a few other paths where I'd also stuck the file. Thanks for the link i'd been on stackoverflow but hadn't read this post.

@DrByte I had stuck the file in every conceivable folder, and the where index.php was one of the first places I'd tried. Or at least I thought so. Turns out that was the problem. D'oh.

Thanks again, sorry for wasting your time. Blame Bill Gates :)