You are here: Re: [PHP] curious (and frustrating) php/apache behavior « PHP « IT news, forums, messages
Re: [PHP] curious (and frustrating) php/apache behavior

Posted by Linda H on 10/29/05 23:28

>We wish to include multiple PHP scripts into our pages but are only
>succeeding in having the first included PHP script executed; the rest are
>ignored or misinterpreted as HTML...

I don't know if this is part of your problem, but when you do an include,
it throws you out of php. So, if there is any php code in the include, you
can't rely on the include being inside a php block. You must put a php
block inside the include as well. This is true no matter how you name the
include file (.php, .inc, .htm).

Linda H

 

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

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