getting variable without extension

Reply

Join Date: Oct 2009
Posts: 55
Reputation: shishtawitch is an unknown quantity at this point 
Solved Threads: 2
shishtawitch shishtawitch is offline Offline
Junior Poster in Training

getting variable without extension

 
0
  #1
31 Days Ago
AOA,
i am developing a site, i want that when ever a user signs up on my site, it should get its own folder like youtube........!! i.e

youtube.com/user/username

my problem is that i want to get variable wihout adding any .php extension. So how can i get or add when user types following
mysite.com/user/username
and i get user.php?user=username but in address bar it only show
user/username please help waiting here
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 72
Reputation: zmariow is an unknown quantity at this point 
Solved Threads: 1
zmariow's Avatar
zmariow zmariow is offline Offline
Junior Poster in Training

URL Rewriting

 
0
  #2
31 Days Ago
What you're looking for is called URL rewriting. If you're using a framework, like Zend Framework or CodeIgniter, then you have that out of the box.

If you're using plain PHP, you have to do that manually on the Apache web server. Check those links for a little help:

http://en.wikipedia.org/wiki/Rewrite_engine
http://www.yourhtmlsource.com/sitema...rewriting.html

Good luck.

Cheers
Mario Awad - Software Developer
http://www.softkube.com
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 55
Reputation: shishtawitch is an unknown quantity at this point 
Solved Threads: 2
shishtawitch shishtawitch is offline Offline
Junior Poster in Training
 
0
  #3
31 Days Ago
thanks man you are great...........!!
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC