Jump to content

Recommended Posts

Posted

I need a script to run when a user registers to my site. I want them to have the option to setup subdomains using their username. I want this to run automatically when they choose yes. Any idea's how I can do this?

Posted

I'm not wanting to allow hosting (in my terms). Let me know if this is against AUP. I'm wanting to allow subdomains so that certain users can upload trail pictures or small videos. The subdomain would have a default page which had an upload script to allow only .jpg, .mpeg, .mpg, .avi files to be uploaded. Once uploaded they would be diplayed in a thumbnail gallery below the upload script w/the code to put in forums to display a link.

Posted (edited)

I'll check that script out.

 

I'm confused as to how allowing them to upload to my site is any different than allowing them to upload to a subdomain folder. My goal in having it in subdomains is to allow them to see just their files very easily. It's all still under my public_html so I don't see what the difference is. I'm not going to give them any ftp access or any ability to host webpages -- the page will just be an upload script and I'm going to make sure it only allows them to upload pics/video extension and no html.

 

Also, I'm not sure...but wouldn't it be more secure if someone tried and successfully uploaded a file that gave them access to the domain -- wouldn't it only give them access to the subdomain?

Edited by Thumper
Posted

If you create an FTP user and assign them to a folder in your domain that is the only folder within your domain they can access with that FTP account.

 

Of course they could create subfolders.

 

What you are wanting to do having a script create a subdomain I doubt will be possible since it has to update DNS records. The only way I know to successfully create a subdomain is using cPanel itself.

 

And if your script creates a folder then the ownership of the folder will most lilkely be "nobody".

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...