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

file_put_contents将行附加到PHP中的CSV文件

If I have a CSV file with 5000 rows on my server, does file_put_contents read the whole file into memory before appending a new row?

I have a custom tracker PHP script that appends one line to a server side CSV file each time a new web visitor comes.

With 100 or so visitors, the CSV file is small, and the script is fast.

But with high numbers - I am wondering if my PHP script will slow down when appending a new row?

Thanks

近期文章

  • CodeIgniter表单验证失败,并且不显示消息
  • codeigniter csv下载(我不是指从mysql导出)
  • Instagram通过API获取所有媒体 -
  • PHPMailer和Outlook电子邮件客户端
  • 从同一个控制器调用函数以返回带有flash消息的视图
  • PHP - 通过表单登录并抓取cookie
  • php请求在使用.htaccess更改php版本后下载实际脚本
  • JavaScript和PHP中的脚本 - 变量
  • 如何在javascript中创建多维数组?
  • 访问php数组的键和值
  • 在Symfony中使用抽象类和接口与ORM,未找到接口
  • CodeIgniter 3.1.3发送加密的URL变量偶尔不起作用
  • 尝试将值从控制器传递到模型codeigniter时获取空数组
  • 带有BCc和Cc的PHP邮件程序
  • 无法连接apache服务器
  • PHP Codeigniter-如何从文件夹中删除图像
  • 在www文件夹中提供下载链接是否安全
  • 是否有必要在PHP上包含超类?
  • 使用javascript / php保存配置信息
  • 从GPS获取当前标记位置并保存到mySQL

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华