Max filesize to open it

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fran García

    Max filesize to open it

    I´m developping an application and i need to protect some files to be
    seen only by the registered users. I protect the folder with the
    ..htaccess properties and then, any time the user need a protected file,
    the application call a function like
    downloadfile.ph p?filename=<fil erequired>.

    The problem now is when the file is bigger than 10Mb, it doesnt´work and
    it return an error. I´m using Apache on a Suse 9.1 distribution and the
    function which returns the content file is file_get_conten ts(). Which
    configuration file must I update to solving this problem.

    I´ve readen the php.ini and the httpd.conf but I haven´t seen any
    variable to solve this.

    Thanks in advance for your answers.

    Fran García
  • Joshie Surber

    #2
    Re: Max filesize to open it

    > The problem now is when the file is bigger than 10Mb, it doesnt´work and[color=blue]
    > it return an error[/color]

    This can't be worked around using the func as you are trying w/o
    modding the php source. What I would suggest you do instead is to give
    the .htpasswd password to users and then give them a link directly to
    the file or just send a redirect header that points to the file.

    Comment

    Working...