> Something like this (you might like to check the syntax, I'm working from > memory here) might work: > > header('Content-Disposition: attachment; filename=somefile.html'); Thanks, I'll have to try that. As for security, looks like I will need to watch out for the extensions. Turns out that the server I'm on executes .php files as long as the directory they are located in is chmod'ed 755. Permissions on the .php file itself don't seem to matter. Apparently, anything else than 755 on the directory prevents Apache from bringing up the HTML files. I thought that 644 would have been enough for HTML, but I guess I was mistaken. - Lauri Harpf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php