You are here: Re: [PHP] Re: Displaying HTML safely « PHP « IT news, forums, messages
Re: [PHP] Re: Displaying HTML safely

Posted by "Lauri Harpf" on 07/17/05 21:02

> 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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация