Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2007
    Location
    Romford, UK
    Posts
    614
    Tokens
    0

    Default Image upload script?

    Well..

    To cut a long story as short as possible. I have a server which isn't really doing much compared to what it could but it still gets paid for every month cause I need it for the odd task and so on.

    Anyway. I was thinking about it and I decided to use it for a imagehost site cause the server is on a 1GB connection and 99% of the time it's not being used so thought it would be awesome to use for myself and anyone else who wishes to use it if I or they ever needed to upload some images for screenshots, pictures whatever I posted and wanted to link them on HxF or where ever would get nice fast loading times and uploads and so on.

    Anyway. It's more or less setup accept. I don't have an image upload script I done some Google searching but couldn't find anything I liked.

    Really. I just want a simple one which can upload, upload multiple files and resize if the user wishes any possibly any other features you think would be useful.

    If you know of anything. Let us know here or any ideas for the site that you would like to see on it. Also let me know either here or VIA a PM.

    If you could make a nice script for yourself for a good and nice looking image upload script let us know but I wont go into detail cause that would belong in 'Paid Requests' section but if you think you could make one and a good one at that. Let us know VIA PM and we can discuss price and everything else.

    But I will end that here before it does get to long.

    Thanks in advance to everyone for suggestions and everything else.

    Moved by N!ck (Forum Moderator) from "Technology Discussion".
    Last edited by N!ck; 04-07-2009 at 09:03 PM.

    http://dualupload.com - Free Image Hosting!

  2. #2
    Join Date
    Dec 2005
    Posts
    6,228
    Tokens
    1,145

    Latest Awards:

    Default

    Here's a basic one, simple but effective. Fiddle around with it if you want to make some changes!

    Code:
    <?php 
    $target = "upload/"; 
    $target = $target . basename( $_FILES['uploaded']['name']) ;  
    $ok=1; 
     
    if ($uploaded_size > 350000) 
    { 
    echo "Your file is too large.<br>"; 
    $ok=0; 
    } 
     
     if ($uploaded_type =="text/php") 
    { 
    echo "No PHP files<br>"; 
    $ok=0; 
    } 
     
    if ($ok==0) 
    { 
    Echo "Sorry your file was not uploaded"; 
    } 
     
     else 
    { 
      if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target))  
    { 
        echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; 
    }  
    else 
    { 
        echo "Sorry, there was a problem uploading your file."; 
    } 
     } 
     ?>
    i'm out of touch, i'm out of love
    i'll pick you up when you're getting down
    and out of all these things i've done
    i think i love you better now

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •