28, May 2012

mkdir upon registration - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: mkdir upon registration
« previous next »
Pages: [1] Print

Author Topic: mkdir upon registration  (Read 3215 times)
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: Male
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: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Jul 23, 2007, 08:07:18 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?

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: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Jul 24, 2007, 07:00:16 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?

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: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Jul 24, 2007, 10:24:45 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?

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
Tags : mkdir registration name Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: mkdir upon registration
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 10:14:35 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.