Re: Include file questions
| From: | Miguel J. Jiménez | Date: | Thu, 24 May 2007 08:58:24 +0000 |
| Subject: | Re: Include file questions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255499@lists.php.net to get a copy of this message | ||
Stephen escribió:
1) Does the filename extension matter? I prefer *.inc? It seems to work fine, but I only see others using *.php 2) Does the include file need an opening <?php and ending ?> ? Not big issues, but I am curious. Thanks Stephen If you use .inc extension you will have to modify the apache so they donot show:
RedirectMatch 404 /^.*\.(inc)$/Thus, if you try to access the file using the navigator it will show a "Page not found" error :-D -- Miguel J. Jiménez Programador Senior Área de Internet/XSL/PHP migueljose.jimenez@isotrol.com ---------------------------------------------------- ISOTROL Edificio BLUENET, Avda. Isaac Newton nº3, 4ª planta. Parque Tecnológico Cartuja '93, 41092 Sevilla (ESP). Teléfono: +34 955 036 800 - Fax: +34 955 036 849 http://www.isotrol.com "You let a political fight come between you and your best friend you have in all the world. Do you realize how foolish that is? How ominous? How can this country survive if friends can't rise above the quarrel". Constance Hazard, North & South (book I)