File Host

How to become a file host

Page 1 of 1

11 Replies - 1956 Views - Last Post: 26 June 2010 - 03:40 AM

#1 jaydscape  Icon User is offline

  • New D.I.C Head

Reputation: -10
  • View blog
  • Posts: 21
  • Joined: 25-June 10

File Host

Posted 25 June 2010 - 10:33 PM

Hey, this is JaydScape and i have a website with unlimited storage and bandwidth. So i was thinking that i could allow people very affordable or free file hosting. How exactly do i do this. I think it uses PHP and my host supports that. If i can't be given code can you redirect me towards a site that has step by step instructions on how to do this. I would just like them to be able to click the link to pay using Paypal then go to a thing where they can click browse and upload to my server. Thanks

Is This A Good Question/Topic? 0
  • +

Replies To: File Host

#2 no2pencil  Icon User is offline

  • Original Digital Gansta
  • member icon

Reputation: 4466
  • View blog
  • Posts: 24,914
  • Joined: 10-May 07

Re: File Host

Posted 25 June 2010 - 10:55 PM

You would need a server side language. Certainly PHP is one, however without knowing what languages that your web server has installed, it's not as simple as saying "You need PHP for this". They very well could have PHP but charge extra, &/or could only have ASP. Without knowing if it's there it's hard to say.

Plus language preference would effect the answer as well ;)
Was This Post Helpful? 1
  • +
  • -

#3 jaydscape  Icon User is offline

  • New D.I.C Head

Reputation: -10
  • View blog
  • Posts: 21
  • Joined: 25-June 10

Re: File Host

Posted 25 June 2010 - 11:02 PM

It supports pretty much all programming languages. So where can i get a script?
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is offline

  • Original Digital Gansta
  • member icon

Reputation: 4466
  • View blog
  • Posts: 24,914
  • Joined: 10-May 07

Re: File Host

Posted 25 June 2010 - 11:08 PM

Setting up Web Hosting is not as simple as a single script.

Check out Zimbra, CPanel, or Zpanel.
Was This Post Helpful? 1
  • +
  • -

#5 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1619
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: File Host

Posted 25 June 2010 - 11:09 PM

Well you write the script, in the language supported by your host. Then when you run into issues you start a thread (in the proper language forum) explaining what you're trying to do, what your code is currently doing and any exceptions you are receiving. When posting your code put it in code tags like so :code:

Hopefully you weren't just looking for someone here at DIC to just give/write one for you, as that's just not the way we work here :)
Was This Post Helpful? 2
  • +
  • -

#6 jaydscape  Icon User is offline

  • New D.I.C Head

Reputation: -10
  • View blog
  • Posts: 21
  • Joined: 25-June 10

Re: File Host

Posted 25 June 2010 - 11:14 PM

Yeah, I know that's not the way you work. I'm only fluent in HTML and basic stuff. I just needed a tutorial website for coders where they can teach me how to make my own file host.
Was This Post Helpful? 0
  • +
  • -

#7 no2pencil  Icon User is offline

  • Original Digital Gansta
  • member icon

Reputation: 4466
  • View blog
  • Posts: 24,914
  • Joined: 10-May 07

Re: File Host

Posted 25 June 2010 - 11:20 PM

Have you looked over our PHP Tutorials & Snippets?
Was This Post Helpful? 1
  • +
  • -

#8 jaydscape  Icon User is offline

  • New D.I.C Head

Reputation: -10
  • View blog
  • Posts: 21
  • Joined: 25-June 10

Re: File Host

Posted 25 June 2010 - 11:25 PM

Well I'm a noob to this website so can someone post the URL to tutorials section. I feel so dumb haha.
Was This Post Helpful? 0
  • +
  • -

#9 no2pencil  Icon User is offline

  • Original Digital Gansta
  • member icon

Reputation: 4466
  • View blog
  • Posts: 24,914
  • Joined: 10-May 07

Re: File Host

Posted 25 June 2010 - 11:27 PM

Attached Image
Was This Post Helpful? 2
  • +
  • -

#10 jaydscape  Icon User is offline

  • New D.I.C Head

Reputation: -10
  • View blog
  • Posts: 21
  • Joined: 25-June 10

Re: File Host

Posted 26 June 2010 - 12:45 AM

Well I think I figured it out but my website is uploading something from another location right now. Well I am and don't want to interrupt it so can someone test my code and make sure it works?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
body {color:red;}
h1 {color:red;}
p.ex {color:red;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JaydScape File Hosting</title>
<meta name="keywords" content="Free, JaydScape, File Hosting" />
<meta name="description" content="Free file hosting at JaydScape.com" />
<script language="javascript" type="text/javascript">
function clearText(field)
{
    if (field.defaultValue == field.value) field.value = '';
    else if (field.value == '') field.value = field.defaultValue;
}
</script>

<script LANGUAGE="Javascript">

function ClipBoard() 
{
holdtext.innerText = copytext.innerText;
Copied = holdtext.createTextRange();
Copied.execCommand("Copy");
}

</SCRIPT>
</head>
<body>
<body background="http://cheapmusik.webs.com/Images/BACKGROUND%20IMAGE.jpg">
<TEXT="Red">
<center>

<p style="color:red;">Here you can upload files for free, to share and give out links to.  Please keep in mind that the files are public while hosted here and everyone that visits the site has access to them.</p>
                
<div id="templatemo_content">
<div id="templatemo_content_top">
<div id="templatemo_content_bottom">
Please choose a file to upload
<form enctype="multipart/form-data" action="URL" method="POST">

<input name="uploaded" type="file"/>
<input type="submit" value="Upload" />
<input type="hidden" name="submitted" value="TRUE" />
</form>
<div id="templaetmo_left">

 
<div class="templatemo_one_col">

<h1>Files I like =)</h1>



                        
<a href = "http://jaydscape.com">Brought to you by JaydScape</a>
</center>
</body>
</html>


Oops sorry i used <code> tag improperly i guess.

This post has been edited by no2pencil: 26 June 2010 - 12:45 AM
Reason for edit:: Corrected code tags

Was This Post Helpful? 0
  • +
  • -

#11 jaydscape  Icon User is offline

  • New D.I.C Head

Reputation: -10
  • View blog
  • Posts: 21
  • Joined: 25-June 10

Re: File Host

Posted 26 June 2010 - 12:58 AM

Anyone edit yet?
Was This Post Helpful? -1
  • +
  • -

#12 husseycoding  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 52
  • View blog
  • Posts: 174
  • Joined: 23-June 10

Re: File Host

Posted 26 June 2010 - 03:40 AM

As PsychoCoder pointed out, these forums are not here for someone to do the work for you, you need to work on it and come here with specific issues you are having problems with, not a request to create an entire backend.

What you want to do is a lot more complex than I think you probably realise at this stage. Allowing a user to upload a file is easy enough, but then how do you manage those files? As the number of files increases how do you sort and present the file list so the user can find what they want? To present this you will need to build a front end GUI to display the data you have about the files and allow the user to download them. You should also definitely have some sort of user management otherwise anyone could upload anything and you wont have a clue where it came from. Also you will need to have file restrictions on file uploads, maybe you don't want users to be able to upload just any file type of any size? If you have illegal content on there you will be liable I think. What if someone mounts an SQL injection attack on your database, are you protected against that?

These are just a few things I have thought about in the couple of minutes it took me to write this response. There is a LOT of work here and if you only have basic code knowledge then I think you are going to have to go away and read a whole lot of information before even starting to build this.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1