Re: Re: Displaying HTML safely

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux