[PHP] Re: Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Ralph Deffke
be aware if you do not have full control of your server setup, this type of
parameter handling is not possible on most shared hostings.

however url encoded it is never a problem. so be clear where yout page will
be hosted.

ralph_def...@yahoo.de

Gaurav Kumar kumargauravjuke...@gmail.com wrote in message
news:87292e170909210054k79858b96yf09eeca5111ec...@mail.gmail.com...
 Hi All,

 I am creating a social networking website. I want that every user should
 have there own profile page with a static URL like-

 http://www.abcnetwork/user/username

 Where username will be dynamic userid or something else.

 This is something very similar to www.youtube.com/user/kumargauravmail
(this
 is my profile page).

 So what should be the best practice to create such DYNAMIC URL's OR what
 kind of methodology youtube is following?

 Thanks in Advance.

 Gaurav Kumar
 OSWebstudio.com




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



Re: [PHP] Re: Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Tommy Pham
- Original Message 
 From: Ralph Deffke ralph_def...@yahoo.de
 To: php-general@lists.php.net
 Sent: Monday, September 21, 2009 1:31:05 AM
 Subject: [PHP] Re: Best Practice to Create Dynamic URL's- With Username
 
 be aware if you do not have full control of your server setup, this type of
 parameter handling is not possible on most shared hostings.
 
 however url encoded it is never a problem. so be clear where yout page will
 be hosted.
 
 ralph_def...@yahoo.de
 

If your hosting service company doesn't permit/use URL rewrite (mod_rewrite for 
Apache), then ask them to specify a 404 error page for you.  You can then do an 
ugly hack of URL rewrite in your (PHP)  404 error page so the URL will be SEF ;)

Regards,
Tommy

 Gaurav Kumar wrote in message
 news:87292e170909210054k79858b96yf09eeca5111ec...@mail.gmail.com...
  Hi All,
 
  I am creating a social networking website. I want that every user should
  have there own profile page with a static URL like-
 
  http://www.abcnetwork/user/username
 
  Where username will be dynamic userid or something else.
 
  This is something very similar to www.youtube.com/user/kumargauravmail
 (this
  is my profile page).
 
  So what should be the best practice to create such DYNAMIC URL's OR what
  kind of methodology youtube is following?
 
  Thanks in Advance.
 
  Gaurav Kumar
  OSWebstudio.com
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


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