Re: Include file questions

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

 



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 do
not 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@xxxxxxxxxxx

----------------------------------------------------

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)



-- 
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