I use mod_rewrite from Apache to do what you're describing.  Everything
without a period in the name gets processed by /index.php.  The index.php
script knows which data to load by parsing the URL.

-----Original Message-----
From: Monty [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 11:13 AM
Subject: [PHP] Loading dynamic pages based on URL

Articles for an online magazine will use one template and load content
dynamically from a MySQL database. Assets and images for each article will
be stored in their own folder: e.g., www.mysite.com/topic/article

Even though a physical HTML page will not exist at
www.mysite.com/topic/article, is there a way to load the appropriate
articles in the template without actually specifying a physical page name if
soemone types that URL into their browser? I'd prefer to send people to
www.mysite.com/topic/article instead of

I realize this may be more of an Apache issue than PHP, but, thought I'd see
if anyone here has dealt with something similar.



PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to