You are here: Re: Parsing a php include (which also contains php code) - or "Reparsing" the php file « PHP Language « IT news, forums, messages
Re: Parsing a php include (which also contains php code) - or "Reparsing" the php file

Posted by Jerry Stuckle on 06/21/07 11:27

Toby A Inkster wrote:
> Jerry Stuckle wrote:
>
>> It depends completely on how your webserver is set up.
>>
>> But .php files should be parsed by every webserver which has php installed.
>
> All files included with include(), require(), include_once() and
> require_once() are parsed as PHP files. This is not dependent on
> the filename or web server.
>

Toby,

Interesting, because I've seen this before, and others have commented on
it, also. Maybe it was a bug in an older version of PHP - it's been a
while ago. But I had one local cohort who was using php includes (not
SSI), and his files were not being parsed when they had .inc extensions.

Changing them to .php worked. And no, I'm sure he didn't use SSI.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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