You are here: Inserting values to files, similar to templates « PHP Language « IT news, forums, messages
Inserting values to files, similar to templates

Posted by Hello on 05/27/05 23:38

Hello,

I don't need the code or anything, just the idea.

My project will generate a file with PHP code. It is being done by
getting a standard PHP file that acts like a template for future PHP
generated files. However, there are some portions that will be changed in
the newly generated PHP files.

How would I approach this efficiently so I could insert a different code
into PHP template and save it as a different file?

Do I put some kind of a tag then open the template, search for the tag and
replace it?

Or, do I put in string values parts of the code that don't change then I put
them together with the changes values in between?

I want it to be less messy since the template might be changed one day.

Thank you.

 

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

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