对于定义的数据类型,值太大 [英] Value too large for defined data type
本文介绍了对于定义的数据类型,值太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 php 下载脚本中使用 readfile().
I'm using readfile() in a php download script.
当我尝试下载 9gb 大小的文件时,出现以下错误:
When I try to download a 9gb sized file, I get the following error:
function.readfile</a>]: failed to open stream: Value too large for defined data type in path of my file
是否可以修复它,或者我是否必须将这些文件移动到 public_html 目录并直接链接它们?
Is it possible to fix it or do I have to move those files to the public_html directory and link them directly?
推荐答案
尽管如此,您还是可以破解的.如果你在 unix 环境中,你可以做
you can hack a way though. If you are on a unix environ, you can do
passthru('cat $filename');
只要你不需要写
这篇关于对于定义的数据类型,值太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文