sedFile() problem with big files

Hi!,

I have a problem with sendFile() with large files (20MB).


$path =  Yii::getPathOfAlias('application.uploads').DIRECTORY_SEPARATOR.$id_cliente.DIRECTORY_SEPARATOR.$nombre_archivo;

	

Yii::app()->getRequest()->sendFile(basename($path), @file_get_contents($path));

It works great with small files but 20MB or more fails. A white page appears and thats it…

Any suggestion? is there a problem with rules in php.ini?

Thanks!

Could be that you hit the memory limit… try to enable notices and warnings to see if you get any message… or check the PHP log file…

Thanks mdomba, you’re right! It was a problem with memory limit.