Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming > PHP
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 08-31-2006, 11:57 PM   #1
Zack
Junior Guru
 
Zack's Avatar
 
Join Date: Dec 2005
Location: North Carolina
Posts: 759
Zack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to behold
Send a message via MSN to Zack
Default Creating New Directory

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
Zack is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 09-01-2006, 11:35 AM   #2
compuXP
Retired Member
 
compuXP's Avatar
 
Join Date: Dec 2005
Posts: 139
compuXP will become famous soon enough
Default Re: Creating New Directory

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!
compuXP is offline  
Old 09-01-2006, 02:32 PM   #3
Zack
Junior Guru
 
Zack's Avatar
 
Join Date: Dec 2005
Location: North Carolina
Posts: 759
Zack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to behold
Send a message via MSN to Zack
Default Re: Creating New Directory

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
Zack is offline  
Old 09-01-2006, 02:37 PM   #4
rohan2kool
Member
 
rohan2kool's Avatar
 
Join Date: Dec 2005
Posts: 132
rohan2kool will become famous soon enough
Default Re: Creating New Directory

just do it:

Code:
<?php mkdir($user); ?>
__________________
Eat healthy, Stay Fit, Die Anyway.
--==--
If there is a man who knows everything about women, there is a Windows distribution without bugs.
rohan2kool is offline  
Old 09-01-2006, 02:38 PM   #5
rohan2kool
Member
 
rohan2kool's Avatar
 
Join Date: Dec 2005
Posts: 132
rohan2kool will become famous soon enough
Default Re: Creating New Directory

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.
rohan2kool is offline  
Old 09-01-2006, 02:49 PM   #6
Zack
Junior Guru
 
Zack's Avatar
 
Join Date: Dec 2005
Location: North Carolina
Posts: 759
Zack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to behold
Send a message via MSN to Zack
Default Re: Creating New Directory

So wait a minute, if I use mkdir($user) it will make a directory with the user's name in it? That's exactly what I want, but I'm just making sure!
HTMLGuy
__________________
yaxal releases '07
Zack is offline  
Old 09-02-2006, 03:25 AM   #7
compuXP
Retired Member
 
compuXP's Avatar
 
Join Date: Dec 2005
Posts: 139
compuXP will become famous soon enough
Default Re: Creating New Directory

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!
compuXP is offline  
Old 09-02-2006, 10:34 AM   #8
rohan2kool
Member
 
rohan2kool's Avatar
 
Join Date: Dec 2005
Posts: 132
rohan2kool will become famous soon enough
Default Re: Creating New Directory

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.
rohan2kool is offline  
Old 09-02-2006, 02:37 PM   #9
Zack
Junior Guru
 
Zack's Avatar
 
Join Date: Dec 2005
Location: North Carolina
Posts: 759
Zack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to beholdZack is a splendid one to behold
Send a message via MSN to Zack
Default Re: Creating New Directory

Um... Yea, I guess I could use the fake directory, it would work better. But how do you do it?
HTMLGuy
__________________
yaxal releases '07
Zack is offline  
Old 09-02-2006, 02:55 PM   #10
compuXP
Retired Member
 
compuXP's Avatar
 
Join Date: Dec 2005
Posts: 139
compuXP will become famous soon enough
Default Re: Creating New Directory

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!
compuXP is offline  
Old 09-02-2006, 04:15 PM   #11
Vegabond
Junior Member
 
Vegabond's Avatar
 
Join Date: Jun 2006
Location: Dhaka, Bangladesh
Posts: 26
Vegabond will become famous soon enough
Default Re: Creating New Directory

Also you can get help from this site for URL Rewrite:
http://www.webmaster-toolkit.com/mod...enerator.shtml
Vegabond is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

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 01: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


All times are GMT. The time now is 09:23 AM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.