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 6 of 6

Thread: Problem!

  1. #1
    Join Date
    Nov 2007
    Posts
    753
    Tokens
    0

    Default Problem!

    Hey as you might of guessed im making a free opensource image upload system. You may be thinking why is he having problems? Hes made one before!
    This is using a different feature as when an image is uploaded it is named using time(); (so that images with the same name can be uploaded)

    The image uploads fine but in the imagesource and the given link shows the name to the file twice.

    e.g.
    Filename
    1234
    Given link
    12341234
    Any ideas on how to fix this?

    upload.php code


    Thanks
    - Luke
    Publishing free website designs, watch this space!
    Total number of designs published: 0
    Current work in progress: Landscape Design


  2. #2
    Join Date
    Mar 2007
    Posts
    1,691
    Tokens
    1,025

    Latest Awards:

    Default

    Why not just make the images have random codes like...

    ia8bw9d7a.png

    Something like that?

  3. #3
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    2,087
    Tokens
    138

    Latest Awards:

    Default

    If you do filenames, whats going to happen if two people upload a file called "Untitled"

    I agree with Greg, it should be just a random code/url.

    .:; Johno

  4. #4
    Join Date
    Nov 2007
    Posts
    753
    Tokens
    0

    Default

    read it properly. It isnt set as filenames its set as time();
    so each upload has been given a unique name
    Publishing free website designs, watch this space!
    Total number of designs published: 0
    Current work in progress: Landscape Design


  5. #5
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    Just randomise the images like tinypic etc.
    No point in numbers

  6. #6
    Join Date
    Jan 2008
    Posts
    534
    Tokens
    0

    Default

    Quote Originally Posted by iGOboy View Post
    Just randomise the images like tinypic etc.
    No point in numbers

    Read what he just said, you spoon.

Posting Permissions

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