You are here: Re: Dynamic pages vs search engines « PHP Programming Language « IT news, forums, messages
Re: Dynamic pages vs search engines

Posted by Sandy.Pittendrigh on 04/04/06 23:01

>> pagePainter.php?page_key=/pages/manual/chapter1/engine_repair/carburetors

> Can you explain why each part of the URL is there? For example, why
is <pagePainter> there?

If you want to dynamically generate the page, you need
a php script to generate the page? No? The name of this
script is pagePainter.php

page_key is a GET parameter
/pages/manual/chapter1/engine_repair/carburetors is the string
value of that get parameter. It can then be used in a mysql query:

select * from my_pages where page_key
='/pages/manual/chapter1/engine_repair/carburetors'

.....further, that key is guaranteed to be unique, because it
comes from a file path, and
more important, guaranteed to stay the same each
time the database is reloaded (by a program that
recursively walks the server-side file system, doing
magic stuff along the way)

 

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

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