Reply to Re: Newbie Q: looking for PHP-aware HTML editor

Your name:

Reply:


Posted by Andy Jeffries on 12/09/05 15:56

On Thu, 08 Dec 2005 10:38:37 -0800, juglesh wrote:
> When beginning PHP, this sounds great, and it does beat the hell out of
> manually updating stuff. But, you still wind up having to edit all your
> pages if you do a major change.
>
> Instead of including the header/footer/etc on each of your pages, try
> having the header/footer on your index.php, then include the content as
> needed. You will wind up having links that look like
> www.domain.com/index.php?page=home,
> www.domain.com/index.php?page=contact etc.

The downside to that is if "page=contact" needs to redirect on some
condition (you won't be able to send headers as the content will have
already started).

It's a nice idea and works fine for small sites, but the way you phrased
it seems like the "header/footer" way is for newbies and more experienced
coders use the "?page=blah" mechanism, whereas IMHO I'd say it's exactly
reversed.

Cheers,


--
Andy Jeffries | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

[Back to original 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

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