Max filesize to open it

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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  

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_contents(). 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

Re: Max filesize to open it

Quoted text here. Click to load it

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.

Site Timeline