You are here: Re: Problem getting included source code to work. « All PHP « IT news, forums, messages
Re: Problem getting included source code to work.

Posted by kenoli on 05/29/06 19:07

The included html file does not define the function but it does call
the function. The fundtion definition is included earlier in the main
script.

In fact, I have been able to get the script to work with the function
call included by surrounding the contents of the included file with
<?php ?> tags.

I found something in a book somehwere that said php does not interpret
php calls from within the content of included files unless these tags
are present in the body of the file.

Now I'm trying to get a while loop to act on some included html.

Maybe someone can point me to some good ideas or good resources for
templating. What I'm trying to do here is to separate out my html code
from the interactive php part of the script. This gets complicated
where there are php elements, like the options tag shown above, spread
aroundin the html. But leaving it all in the main php script makes it
hard to read easily and having it separated out makes it easier to make
modifications in the html without impacting the scripting parts.

Any suggestions?

--Kenoli

 

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

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