Brilliant, that's done it - the one thing I will ask about this is that it's going to be used on an anti-leech system so it checks the referring domain before allowing the download - I've tested it and it now works fine, but this is only on my forum, will it work fine with forums in sub directories (
www.mysite.com/forum) ?
Would using $_SERVER['SERVER_NAME'] give any issues for people using root servers or home based servers? If a server is running more than one forum, would each one have it's own server name? I'm maybe asking questions which are a little too indepth ..... I'm not too sure myself.
Thanks for your help, you've saved me a big headache
Jason