Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Creating a PHP system which allows basic hosting?
Old 01-18-2008, 12:01 PM Creating a PHP system which allows basic hosting?
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
hey,

I would like to make a simple system where a user signs up.

they can then login and uplaod/delete files within a folder.

the folder will be created on sign up and will be called something of thier choice.

How would i have it so they could do this?

so they cant edit/delete uplaod to others folders

this is just a system i want for a class project we are making basic sites only html and i just want to try and make it so everyone can put them "live"

so please any body with some idea of the best ways to do some or all of this please tell!

Thanks

TP for all good and helpful answers
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
 
Register now for full access!
Old 01-19-2008, 05:21 PM Re: Creating a PHP system which allows basic hosting?
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
Have a look for an script similar to iHost, it uses a cPanel/whm API to make accounts and what have you.
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 01-19-2008, 05:57 PM Re: Creating a PHP system which allows basic hosting?
Defies a Status

Posts: 1,606
Trades: 0
Dan,

This isn't going to be something you can whip out in a weekend. I know of one that sells for $24 and can force ads to the pages. I wrote the author and asked if he would donate the temporary use in return for a free plug. I have not heard back from him.

I can and will PM you the url if you want it. If he doesn't donate, I am not going to plug him here.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 01-20-2008, 11:32 AM Re: Creating a PHP system which allows basic hosting?
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
I dont want a auto account creater, all i want is a simple login system (which i can do) and when they sign up it creates a dir in public_html/sites/USERNAME like that and then they can login and mange the files in that folder.

so i just need to have a think which allows uplaod, dir creation, file deletion and renaming.

what exactly does the script do you said about colbyt
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 01-20-2008, 02:35 PM Re: Creating a PHP system which allows basic hosting?
Defies a Status

Posts: 1,606
Trades: 0
Quote:
what exactly does the script do you said about colbyt
Just exactly what you said you wanted. Account creation, directory creation and I think the ability to upload files via http. I will PM you the link and you can take a look at the demo.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 01-20-2008, 03:22 PM Re: Creating a PHP system which allows basic hosting?
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
Just had look at demo, if it was free it looks like it would be perfect, but i have a budget of Zero :-(

do you know of a free one?
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 01-20-2008, 04:51 PM Re: Creating a PHP system which allows basic hosting?
Defies a Status

Posts: 1,606
Trades: 0
When and for how long do you need the script to work?

There is a shareware or gpl out there somewhere. I have seen it. I just don't recall where. I found this one in my bookmarks, the site.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 01-20-2008, 08:14 PM Re: Creating a PHP system which allows basic hosting?
Novice Talker

Posts: 5
Trades: 0
I believe their is one that i saw not to long ago. Its logo was a squirrel...lol
Google it.
zerogravity is offline
Reply With Quote
View Public Profile
 
Old 01-20-2008, 09:41 PM Re: Creating a PHP system which allows basic hosting?
Inet411's Avatar
Skilled Talker

Posts: 88
Name: programmer
Location: internet
Trades: 0
Quote:
Originally Posted by dansgalaxy View Post
hey,

I would like to make a simple system where a user signs up.

they can then login and uplaod/delete files within a folder.

the folder will be created on sign up and will be called something of thier choice.

How would i have it so they could do this?

so they cant edit/delete uplaod to others folders

this is just a system i want for a class project we are making basic sites only html and i just want to try and make it so everyone can put them "live"

so please any body with some idea of the best ways to do some or all of this please tell!

Thanks

TP for all good and helpful answers

It sounds like all you need is a few php functions.

mkdir will make a directory

fopen can make a file:
$FileName = "file.php";
$FileHandle = fopen($FileName, 'w') or die("can't open file");
fclose($FileHandle);
What that does is looks to open the file if it can't find it it creates it.

So just make a signup form. Whatever username they use - use that in your mkdir command ie:
$folder = $_POST['username'];
mkdir("/path/to/public_html/folderhosting/$folder", 0777);

Now when they login you can have your upload script where when they upload any files just put the files into their particular folder based on the username they are logged in with.
__________________

Please login or register to view this content. Registration is FREE

Inet411 is offline
Reply With Quote
View Public Profile Visit Inet411's homepage!
 
Reply     « Reply to Creating a PHP system which allows basic hosting?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30168 seconds with 12 queries