Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2005-08-17, 11:16 AM
Junior Member
 
Join Date: Aug 2005
Posts: 3
scottybowl
Default

Hi,

Just a quick overview before I get down to the nitty gritty.

I am developing a website which is membership based - i.e people can register on the site. I want each member to have their own "page". For example, let's say user "tomjones" registers with the site, I want them to be able to go to www.mysite.com/tomjones and have it display their page.

Obviously, the original way would be to do something like www.mysite.com/memberspage.php?id=tomjones

It's messy, hard for the member to remember, and not good for search engine optimisation.

I do not have root access on my host (i.e the ability to alter the Apache configuration) so that is not an option. I've been looking into htaccess modification but can't find anything that seems to match what I want to do.

In addition, what happens if I have some REAL folders? eg. www.mysite.com/stats. I wouldnt want any scripts to think "stats" was a user page..

I would appreciate any help that you can give me, whether it be a link to a tutorial or giving me a bit of advice on this forum.

Thanks in advance

Scott
Reply With Quote
  #2 (permalink)  
Old 2005-08-17, 04:58 PM
Xnuiem's Avatar
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

You have a couple of ways to go...

first, try mod_rewrite . Its an apache module that may be installed. if not, there are other methods....

Creating actual directories is a good way to go, just create an array somewhere in your software that holds the names of all the reserved ones that way you dont create/delete those.

Spiders wont find your system directories, like stats, unless there is a link to them, so dont worry about that.
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:12 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.