我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何使用PHP处理大文件? [重复]

This question already has an answer here:

  • Least memory intensive way to read a file in PHP 5 answers

I have a file with around 269 thousand lines. The size of the file is around 500MB. I want to read the file on localhost but it says the memory is not enough. Then i try to run it in my web server, but when i run my program it didn't display anything, then my browser crashed. Can anyone help me?

</div>

use for unlimited memory limit

ini_set('memory_limit', '-1');

近期文章

  • 架构更新Symfony2出错
  • Redirect_uri_mismatch不起作用
  • Dropbox PHP v2上传问题
  • 在php中复制数据库日期变量[复制]
  • 将PHP中的hash_hmac转换为rails等效项
  • 上传php脚本错误将图像移动到文件夹
  • Symfony DQuery构建器:Magic方法没有选择正确的表
  • CSS - 页脚留在页面底部[重复]
  • 如何使用PHP curl_setopt检查服务器错误类型?
  • 如何用这个表结构从MySQL实现结果?
  • 我想用php创建一个表的图形表示?
  • 在CodeIgniter中验证失败后,从数据库生成复选框
  • unserialize()函数不能使用php使用多个索引
  • 模块路由不对
  • jQuery slideToggle没有触发
  • 通过作曲家覆盖课程
  • 如何在laravel 5.1中访问子函数内的父函数的参数
  • Laravel包开发
  • 在buddypress子菜单上获取404
  • 使用AJAX / JSON进行PHP验证

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华