hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : create FTP user form PHP script?
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

create FTP user form PHP script?

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 12-14-2004, 02:50 PM
Canadaka Canadaka is offline
Junior Guru
 
Join Date: Sep 2002
Location: BC, Canada
Posts: 177

create FTP user form PHP script?


Does anyone know if its possible, or even better know how to make a php script that can create a FTP User account on an ftp server?

I am currently running Serv-U as my ftp server, but if its possible with another ftp server i *could* switch.

__________________
Canada Kicks Ass Canadian content & forums! | Canadian Hottie.ca Sexy Canadian babes for free!

Reply With Quote


Sponsored Links
  #2  
Old 12-14-2004, 03:14 PM
Carp Carp is offline
What should I put here?
 
Join Date: Feb 2003
Location: Albany, New York
Posts: 2,914
Is there a bash command to create a user? I'm guessing yes, so you can run something like this:

PHP Code:
exec("createuser username password"$output);

// if statement here to check if it was created successfully using the $output variable. 

__________________
www.kmcarpenter.com


Reply With Quote
  #3  
Old 12-14-2004, 03:33 PM
Canadaka Canadaka is offline
Junior Guru
 
Join Date: Sep 2002
Location: BC, Canada
Posts: 177
hmm ok, but i looked through the serv-u documentation, can't find anything about controling the server through bash commands or script.

Does anyone know if this is possibly with Serv-U. If not, know of any another Windows FTP Servers?

__________________
Canada Kicks Ass Canadian content & forums! | Canadian Hottie.ca Sexy Canadian babes for free!

Reply With Quote
Sponsored Links
  #4  
Old 12-14-2004, 03:35 PM
Carp Carp is offline
What should I put here?
 
Join Date: Feb 2003
Location: Albany, New York
Posts: 2,914
Oh, you're on Windows. Sorry.

You're going to have to find out how users are created. In Serv-U I think they create a folder for each user but I don't know where the password is stored. So you need to create that folder via PHP and then edit the password file if there is one or if you can find it.l

__________________
www.kmcarpenter.com


Reply With Quote
  #5  
Old 12-14-2004, 04:13 PM
Canadaka Canadaka is offline
Junior Guru
 
Join Date: Sep 2002
Location: BC, Canada
Posts: 177
hmm i can't find where it saves its users account and password, looked at all the files in the serv-u folder. must be in the registry or proprietory file of soem sorts.

I think I might have to find another ftp server software

__________________
Canada Kicks Ass Canadian content & forums! | Canadian Hottie.ca Sexy Canadian babes for free!

Reply With Quote
  #6  
Old 12-14-2004, 05:03 PM
absolut absolut is offline
Junior Guru Wannabe
 
Join Date: Apr 2003
Posts: 98
Yes, try FileZilla Server. It stores usernames/passwords in xml-file, so you can update it with your data and then reload config file. Example command to apply new settings: "FileZilla server.exe" /reload-config

__________________
Try our dedicated windows servers

Reply With Quote
  #7  
Old 12-14-2004, 10:34 PM
Carp Carp is offline
What should I put here?
 
Join Date: Feb 2003
Location: Albany, New York
Posts: 2,914
Yeah, That would be a simple task.

__________________
www.kmcarpenter.com


Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Super Charge Your Trial Program Blog 2013-05-16 09:48:11
Pingdom Talks Top Web Hosting Cities and Countries Web Hosting News 2013-03-27 18:49:54
Go Daddy Works with US Secret Service in JotForm Website Takedown Web Hosting News 2012-02-17 13:48:28
Control Panel cPanel Launches New Apache Configuration Script Web Hosting News 2011-12-28 19:41:39
OpenSRS Launches Video Production Service for Resellers Web Hosting News 2011-08-18 14:29:33


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?