+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: uploading a file [PHP / HTML]

  1. #1
    terryurden is offline x10Hosting Member terryurden is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    5

    uploading a file [PHP / HTML]

    <form action="upload_file.php" method="post" enctype="multipart/form-data">
    <label for="file">Filename:</label><input type="file" name="file" id="file" />
    <br />
    <input type="submit" name="submit" value="Submit" />
    </form>

    i use this small upload code a file to my page i like to extract some data from. On my local WAMP server it works without problems... here on x10 i get a 500 internal error (when the file is submitted)....

    what can it be?
    Last edited by terryurden; 11-30-2008 at 01:56 PM.

  2. #2
    Wizet's Avatar
    Wizet is offline x10 Elder Wizet is an unknown quantity at this point
    Join Date
    May 2008
    Location
    Brooklyn, New York.
    Posts
    644

    Re: uploading a file [PHP / HTML]

    Well there's a big difference between your wampserver and the humongous servers that X10 are using.

  3. #3
    cursedpsp is offline x10 Sophmore cursedpsp is an unknown quantity at this point
    Join Date
    Apr 2008
    Location
    Wiltshire, England
    Posts
    238

    Re: uploading a file [PHP / HTML]

    Whats with the "<label for>"?

    Its not your HTML file, its the PHP file - since HTML isnt a server-sided language

    It seems you are following w3schools yes? Remove the <label> since its needless

  4. #4
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: uploading a file [PHP / HTML]

    no label isn't useless. if they click the text within label, it'll make the for="" the active text box. in this case, it they click filename:, the input with the name: file will become the active input box. i think it's something with the server changes because i cannot upload images either...

    other than the php.ini and the apache httpd.conf files, there's no difference (server sizes dont make a difference for compatibility).
    Last edited by xPlozion; 11-30-2008 at 02:34 PM.

  5. #5
    terryurden is offline x10Hosting Member terryurden is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    5

    Re: uploading a file [PHP / HTML]

    i gladly remove the <label> tags if it would solve my problem... but it doesn't... is there some configuration thing i must set some files are accepted?

  6. #6
    natsuki's Avatar
    natsuki is offline x10 Sophmore natsuki is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    112

    Re: uploading a file [PHP / HTML]

    this has something to do with the php script or the server, though i think it's really the server. what files are you trying to upload?

    it doesn't really matter whether you remove the <label> or not, it won't cause any problems

  7. #7
    xcaliberse is offline x10Hosting Member xcaliberse is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    46

    Re: uploading a file [PHP / HTML]

    To upload, just drag it in your ftp server and use the link from there.

  8. #8
    cursedpsp is offline x10 Sophmore cursedpsp is an unknown quantity at this point
    Join Date
    Apr 2008
    Location
    Wiltshire, England
    Posts
    238

    Re: uploading a file [PHP / HTML]

    Quote Originally Posted by xcaliberse View Post
    To upload, just drag it in your ftp server and use the link from there.
    Would you not think why this topic is up if we already knew that?

  9. #9
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: uploading a file [PHP / HTML]

    Quote Originally Posted by xcaliberse View Post
    To upload, just drag it in your ftp server and use the link from there.
    there's a couple of reasons to not do this. one, on my site, i have an upload form for images that is part of a bigger system, and it does everything automatically. It resizes it, and uploads it to a specific directory, depending on my $_GET variable, and names it according to it's position. It would simply take too much time to do this by hand.

    another reason is for member stuff, like attachments or user avatars that are uploaded to the server.

  10. #10
    terryurden is offline x10Hosting Member terryurden is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    5

    Re: uploading a file [PHP / HTML]

    Quote Originally Posted by natsuki View Post
    this has something to do with the php script or the server, though i think it's really the server. what files are you trying to upload?
    trying to get .xlm files. I got a parser for them so i can put the data in them into a database to track several things.

    Quote Originally Posted by xPlozion View Post
    there's a couple of reasons to not do this. one, on my site, i have an upload form for images that is part of a bigger system, and it does everything automatically. It resizes it, and uploads it to a specific directory, depending on my $_GET variable, and names it according to it's position. It would simply take too much time to do this by hand.
    1. did you make any config changes to get the upload working?
    2. would it matter to change to post action to a get action?

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. It works! ...
    By bpakidz in forum Programming Help
    Replies: 4
    Last Post: 09-07-2008, 11:12 PM
  2. Internal Serve Error
    By xaakx in forum Free Hosting
    Replies: 6
    Last Post: 02-03-2008, 08:02 AM
  3. help!!
    By retro-bliss in forum Free Hosting
    Replies: 25
    Last Post: 12-07-2007, 01:12 PM
  4. php version
    By loveispoison in forum Free Hosting
    Replies: 10
    Last Post: 11-21-2007, 10:53 AM
  5. Converting a .RMVB file
    By SEŅOR in forum Off Topic
    Replies: 7
    Last Post: 06-19-2006, 02:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers