Any chance of some help with uploading files?

Discussion in 'PHP' started by crazyryan, Oct 3, 2007.

  1. #1
    I'm having a nightmare with uploading files and was wondering if anyone could quickly whip up a little script for me, I just need to upload two files, I need to assign a name like jfmsdi234hsdsfsdf for each of them, e.g. longname.gif and longname.swf so they're the same, upload one file to /files/thumbnails and the swf file to /files/swf
    I need to keep the path of the file e.g. files/swf/longname.gif as well to insert into my database. If anyone could complete something like that I should be able to edit it to anything else I may need, thanks!
     
    crazyryan, Oct 3, 2007 IP
  2. smatts9

    smatts9 Active Member

    Messages:
    1,089
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    88
    #2
    If it is just two files why not use an FTP, and insert them into your db by hand?
     
    smatts9, Oct 3, 2007 IP
  3. crazyryan

    crazyryan Well-Known Member

    Messages:
    3,087
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    175
    #3
    Because I'm trying to build a user-friendly system that's almost 100% automated. (Oh, and this process will be repeated lots of times)
     
    crazyryan, Oct 3, 2007 IP
  4. kendo1979

    kendo1979 Peon

    Messages:
    208
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yup, agree with smatts9

    unless you are thinking of making an automation, you should keep it simple and use ftp instead.
     
    kendo1979, Oct 3, 2007 IP
  5. ScamHunter

    ScamHunter Peon

    Messages:
    81
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Do you mean that you want your webpage to allow a user to upload two files, one of them being an image and to insert the image into the database?
     
    ScamHunter, Oct 3, 2007 IP
  6. crazyryan

    crazyryan Well-Known Member

    Messages:
    3,087
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    175
    #6
    I want to be able to upload an image and swf file via my webpage and then insert the file paths into the database. FTP is not an option.
     
    crazyryan, Oct 3, 2007 IP
  7. crazyryan

    crazyryan Well-Known Member

    Messages:
    3,087
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    175
    #7
    $5 to anyone that helps?
     
    crazyryan, Oct 4, 2007 IP