Variable folders

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
next2hea
Forum Newbie
Posts: 2
Joined: Wed Feb 02, 2005 12:03 pm

Variable folders

Post by next2hea »

There are a series of postcards a client wants to send out with a unique URL on it such as:

http://www.somesite.com/tomjones

There would be over 20,000 unique names. How can I capture those as variables to search in a database for their unique information?

Would they be variables? Or something else? I just need to capture that folder name without acually creating 20,000 folders.


THANKS!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

using mod_rewrite to pass the request information to an existing script would probably work best, if you are running Apache and have mod_rewrite enabled or can be installed.

Without those, it'd be very difficult to process unless you created a custom 404 error handler page that (hopefully) your server sends the requested uri to.
Post Reply