Total Zero
Posts: 5
34 credits Members referred : 0
« on: Jul 23, 2007, 04:14:36 pm »
I was wondering if it would be possible to add a function to the php that would create a new directory on my server when someone registered with the same name as the person's user name? I.E. every time someone registers on my site it would create a new directory on my server named after that person.
« Last Edit: Jul 23, 2007, 04:16:28 pm by jmartin »
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Jul 23, 2007, 04:18:05 pm »
you mean to create a directory with the used user name?
thats possible, but you need to validate first that the user name has only valid chars.
use the mkdir function in your registration / validation process (you can do that outside the AU class)
Total Zero
Posts: 5
34 credits Members referred : 0
« Reply #2 on: Jul 23, 2007, 07:39:24 pm »
Yes, that's exactly what I mean. So what your saying is I can enter this function along with the char validation on the registration.php page?
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
Yes, that's exactly what I mean. So what your saying is I can enter this function along with the char validation on the registration.php page?
yeah like:
if (submit) { if (valid login name) { create directory ....
you can do that in two parts: 1. check login name while registration 2. create directory after account is approved
Total Zero
Posts: 5
34 credits Members referred : 0
« Reply #4 on: Jul 23, 2007, 11:38:55 pm »
Sounds good Olaf, great work on thise login system.
Total Zero
Posts: 5
34 credits Members referred : 0
« Reply #5 on: Jul 24, 2007, 05:50:07 pm »
Hi Olaf, I had one more quick question. On the example.php, after I have automatically generated the new directory with the user's login name, would there be a way to insert an iframe that would reference to the current logged in customer's new directory? If so, what would I need to put in the iframe tags to do this?
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
Hi Olaf, I had one more quick question. On the example.php, after I have automatically generated the new directory with the user's login name, would there be a way to insert an iframe that would reference to the current logged in customer's new directory? If so, what would I need to put in the iframe tags to do this?
why an Iframe?
Total Zero
Posts: 5
34 credits Members referred : 0
« Reply #7 on: Jul 24, 2007, 08:17:06 pm »
Because I want to post design work in the iframe that would be in the user's directory. Maybe I wouldn't need an iframe, maybe just a link to the .jpg file in the user's directory. What do you think? Is it possible?
« Last Edit: Jul 24, 2007, 08:42:15 pm by jmartin »
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
Because I want to post design work in the iframe that would be in the user's directory. Maybe I wouldn't need an iframe, maybe just a link to the .jpg file in the user's directory. What do you think? Is it possible?
sure why not, protect the directories and open the content from the directory with file functions
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6939