Sublime directory Surf the web anonymous Pagerank Monitor


mkdir upon registration

jmartin
Mon 23 July 2007, 04:14 pm GMT +0200
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.

olaf
Mon 23 July 2007, 04:18 pm GMT +0200
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)

jmartin
Mon 23 July 2007, 07:39 pm GMT +0200
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?

olaf
Mon 23 July 2007, 08:07 pm GMT +0200
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

jmartin
Mon 23 July 2007, 11:38 pm GMT +0200
Sounds good Olaf, great work on thise login system.

jmartin
Tue 24 July 2007, 05:50 pm GMT +0200
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?

olaf
Tue 24 July 2007, 07:00 pm GMT +0200
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?

jmartin
Tue 24 July 2007, 08:17 pm GMT +0200
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?

olaf
Tue 24 July 2007, 10:24 pm GMT +0200
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

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional