How To Create A Free Web Host

Reply

Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

How To Create A Free Web Host

 
0
  #1
Sep 3rd, 2005
Hi,

I was wondering if there's a tutorial on making a website that offers free hosting. I know how to upload files with PHP, so I posted this topic here.

Thanx.
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 294
Reputation: zippee is an unknown quantity at this point 
Solved Threads: 6
zippee's Avatar
zippee zippee is offline Offline
Posting Whiz in Training

Re: How To Create A Free Web Host

 
0
  #2
Sep 4th, 2005
2 options: 1. Build your own web server, 2. Sign up for reseller hosting package

Unless you build the free hosting service for marketing purposes (generate many users who looking for free stuffs), offering free hosting service need serious money input!
Ecommerce-Web-Store.com Building Your e-Business.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: How To Create A Free Web Host

 
0
  #3
Sep 4th, 2005
Hi Zippee,

Thanks. The site will only host a few of my friend's site - no one else. I wanted to make it so when they sign up a directory is created that's password protected with their password. Is there a way to do this? If there is, could you tell me or show me a tutorial?

Thanks a lot!
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 294
Reputation: zippee is an unknown quantity at this point 
Solved Threads: 6
zippee's Avatar
zippee zippee is offline Offline
Posting Whiz in Training

Re: How To Create A Free Web Host

 
0
  #4
Sep 4th, 2005
Originally Posted by Ghost
The site will only host a few of my friend's site - no one else. I wanted to make it so when they sign up a directory is created that's password protected with their password. Is there a way to do this? If there is, could you tell me or show me a tutorial?
It will be very similar to my store2go.net site.
Create a php file that allow your friends to enter directory name, user name and password. Use mkdir function to create folder and (use fopen and fwrite) create .htpasswd file in the folder with their username and password. I never use .htpasswd so cannot comment.
Ecommerce-Web-Store.com Building Your e-Business.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: How To Create A Free Web Host

 
0
  #5
Sep 5th, 2005
Hi,

Thanks! Can you explain more about the file writing and the make directory function? Thanks!

Also, if anybody knows about .htpsswrd, I would appreciate your help.

Thanks again.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: How To Create A Free Web Host

 
0
  #6
Sep 5th, 2005
Hi Zippee,

Also, instead of uploading through the browser, can they upload through an FTP? I'll be hosting through Apache Webserver on my own computer. The web address will be my email address.

Thanks!
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: How To Create A Free Web Host

 
0
  #7
Sep 5th, 2005
sorry - i meant the website address will be my IP address
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: How To Create A Free Web Host

 
0
  #8
Sep 5th, 2005
Hi Everyone,

I got the file creation to work! Is there a way to make a page where the user enters a username and password and it takes you to an upload page where you can upload files? I already know how to make the upload page. The only problem is that I can't use databases - they don't work on my computer!

Thanks for your help in advanced!
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 294
Reputation: zippee is an unknown quantity at this point 
Solved Threads: 6
zippee's Avatar
zippee zippee is offline Offline
Posting Whiz in Training

Re: How To Create A Free Web Host

 
0
  #9
Sep 5th, 2005
1. You can create a simple login page (with or without database connection). If without db, then use txt file to save data (but is limited to small number of users only). After successfully login, redirect user to upload page.
2. Unless you want to upload file to database, you can uploading file directly into folder without a database running on your machine.
3. You propably need to install mysql on your server to run database. Also install phpMyAdmin for better user interface.

P/S: not good enough to comment on FTP side. sorry!
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 294
Reputation: zippee is an unknown quantity at this point 
Solved Threads: 6
zippee's Avatar
zippee zippee is offline Offline
Posting Whiz in Training

Re: How To Create A Free Web Host

 
0
  #10
Sep 5th, 2005
Create folder on the fly:[php]// get folder name - user define
$folder_name = $_GET['fname'];
// where the folder need to be created
$path = 'user/';
// check if folder already exists, if not create new folder
if (!is_dir($folder_name)) {
mkdir($path.$folder_name, 0777) or die ('Could not create folder');
}
[/php]Do check php.net for permission mode. 0777 is open to public to read, write and execute.
Ecommerce-Web-Store.com Building Your e-Business.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC