file upload

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • doorman

    file upload

    hy all!

    i want to upload large files onto my website, but i'm not the owner of
    the server, so i can't change the php.ini file myself. is there a way to
    get around this?

    thnx,
    doorman
  • Jon

    #2
    Re: file upload

    If you mean the file you want to upload is bigger than that specified in the
    php.ini file, you can't get around it from my knowledge.

    "doorman" <hjblkjh@dd.com > wrote in message
    news:dqloqt$n1$ 1@magcargo.voda tel.hr...[color=blue]
    > hy all!
    >
    > i want to upload large files onto my website, but i'm not the owner of the
    > server, so i can't change the php.ini file myself. is there a way to get
    > around this?
    >
    > thnx,
    > doorman[/color]


    Comment

    • Adam Plocher

      #3
      Re: file upload

      You might be able to do ini_set("upload _max_filesize", "50M");

      Comment

      • juglesh

        #4
        Re: file upload


        Adam Plocher wrote:[color=blue]
        > You might be able to do ini_set("upload _max_filesize", "50M");[/color]

        you may also be able to use a .htaccess file, the contents of which may
        look like this:

        # php_value name value
        php_value post_max_size 50M
        php_value upload_max_file size 50M
        php_value max_execution_t ime 16666

        --
        j

        Comment

        • doorman

          #5
          Re: file upload

          juglesh wrote:[color=blue]
          > Adam Plocher wrote:
          >[color=green]
          >>You might be able to do ini_set("upload _max_filesize", "50M");[/color]
          >
          >
          > you may also be able to use a .htaccess file, the contents of which may
          > look like this:
          >
          > # php_value name value
          > php_value post_max_size 50M
          > php_value upload_max_file size 50M
          > php_value max_execution_t ime 16666
          >[/color]

          when trying this htaccess i get the 500 error from the server... is
          there any way to get around this ini setting by ftp upload in php? is it
          possible?

          Comment

          • juglesh

            #6
            Re: file upload


            doorman wrote:[color=blue]
            > juglesh wrote:[color=green]
            > > Adam Plocher wrote:
            > >[color=darkred]
            > >>You might be able to do ini_set("upload _max_filesize", "50M");[/color]
            > >
            > >
            > > you may also be able to use a .htaccess file, the contents of which may
            > > look like this:
            > >
            > > # php_value name value
            > > php_value post_max_size 50M
            > > php_value upload_max_file size 50M
            > > php_value max_execution_t ime 16666
            > >[/color]
            >
            > when trying this htaccess i get the 500 error from the server... is[/color]

            This means your server isnt set up to use the .htaccess files. I
            recall one server giving me a 500 error because of one part of the
            htaccess but the rest was ok, so you could contact your host and ask
            them about it.
            [color=blue]
            > there any way to get around this ini setting by ftp upload in php? is it
            > possible?[/color]

            There are ftp funcs in php, I havent used them. You could get a
            standalone app for the client side that can ftp. Who are the end
            users?

            Comment

            • Jim Michaels

              #7
              Re: file upload

              there's another setting.
              ini_set("post_m ax_size","50M") ;

              I have heard of problems uploading when people didn't tinker with this one.
              try it and see what happens.

              "Adam Plocher" <aplocher@gmail .com> wrote in message
              news:1137606103 .891971.58920@o 13g2000cwo.goog legroups.com...[color=blue]
              > You might be able to do ini_set("upload _max_filesize", "50M");
              >[/color]


              Comment

              Working...