> The problem now is when the file is bigger than 10Mb, it doesnt´work and
> it return an error
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.