You are here: Re: Template Pages with Parse File « PHP Programming Language « IT news, forums, messages
Re: Template Pages with Parse File

Posted by Janwillem Borleffs on 11/15/80 11:26

IWP506@gmail.com wrote:
> So I would structure my links like
> "http://www.domain.com/parse.php?link=aboutUs.html". It would read in
> aboutUs.html, do a string replacement in the appropriate places, then
> output what's left.
>
> But something is giving me the feeling that this is a bad idea.
>
> What do you think?
>

I agree that this is a bad idea. Even when you thoroughly validate the
contents of the link parameter, it reduces the maintainability of your site.

If you want to change the name of the page, you will have to modify all
references. A better solution would be to use a link like:

http://www.domain.com/parse.php?link=about

This way, it's not important how the template file is called and you can
validate the link parameter easily against a list of valid values.


JW

 

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

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