|
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]
|