|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Junior Guru | Hello, I am creating a website that needs to be able to create a new directory using the username of a person. So in example... http://www.mydomain.com/users/htmlguy (htmlguy being the directory created upon sign-up). How would I do this! Thanks for any help I can get! HTMLGuy
__________________ yaxal releases '07 |
| |
|
| |||||||
| | #2 |
| Retired Member Join Date: Dec 2005
Posts: 139
![]() | You need an actual directory or can you use mod_rewrite to "imitate" a directory? E.g. mydomain.com/usres/htmlguy could forward to mydomain.com/user.php?user=htmlguy so you could work with it in PHP. Or do you actually need a place to keep files?
__________________ Retired Moderator/Member/Friend/Helper - it was great working with all of you! |
| |
| | #3 |
| Junior Guru | Take a look at last.fm, here is my address for my music area... http://www.last.fm/users/crezant It doesn't forward anything, but I have never heard of mod_rewrite, so, that could work. How do you do that though (I'm just beginning learning php so...) HTMLGuy
__________________ yaxal releases '07 |
| |
| | #4 |
| Member Join Date: Dec 2005
Posts: 132
![]() | just do it: Code:
__________________ Eat healthy, Stay Fit, Die Anyway. --==-- If there is a man who knows everything about women, there is a Windows distribution without bugs. |
| |
| | #5 |
| Member Join Date: Dec 2005
Posts: 132
![]() | but it's better to use mod_rewrite as you can then centralize the process with single scripts.
__________________ Eat healthy, Stay Fit, Die Anyway. --==-- If there is a man who knows everything about women, there is a Windows distribution without bugs. |
| |
| | #7 |
| Retired Member Join Date: Dec 2005
Posts: 139
![]() | Well be careful, that function actually CREATES a directory, a real directory in the file system. mod_rewrite imitates one. It makes URLs look pretty, basically. Do you need to actually store files or just show a user profile or something?
__________________ Retired Moderator/Member/Friend/Helper - it was great working with all of you! |
| |
| | #8 |
| Member Join Date: Dec 2005
Posts: 132
![]() | yep. it makes a directory or as compuXP said, a REAL directory
__________________ Eat healthy, Stay Fit, Die Anyway. --==-- If there is a man who knows everything about women, there is a Windows distribution without bugs. |
| |
| | #10 |
| Retired Member Join Date: Dec 2005
Posts: 139
![]() | Here: http://www.iwebtool.com/articles/view_10845.html One of my sites, www.foodalicious.com, uses this method.
__________________ Retired Moderator/Member/Friend/Helper - it was great working with all of you! |
| |
| | #11 |
| Smurf Join Date: Jun 2006 Location: Dhaka, Bangladesh
Posts: 26
![]() | Also you can get help from this site for URL Rewrite: http://www.webmaster-toolkit.com/mod...enerator.shtml |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IndexU Directory : Directory of directory for niche and local directories only | seveneth | Your directory | 1 | 11-28-2006 02:38 PM |
| Stormy Directory - Free SEO Friendly Directory | monica | Your directory | 1 | 10-15-2006 08:04 PM |
| Creating content for other Poker webmasters | rodneyjoyce | Marketing and Promotion | 2 | 10-10-2006 01:57 PM |
| Directory Owners! Directory of Directories Rating & Comments - Full Stats - Read | jg123 | Your directory | 3 | 06-05-2006 08:50 PM |
| Link Lasso Web Directory - Premium Paid Directory | bbott | Advertise your website | 1 | 04-15-2006 11:37 AM |