Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/235.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 什么是资源密集型,fopen&x2B;fwrite或mysql_query()_Php_Mysql_Nginx - Fatal编程技术网

Php 什么是资源密集型,fopen&x2B;fwrite或mysql_query()

Php 什么是资源密集型,fopen&x2B;fwrite或mysql_query(),php,mysql,nginx,Php,Mysql,Nginx,我正在编写一个相当大的脚本,它将必须处理大量数据,但是其中有一部分用于日志记录,我想知道,在txt文件或mysql查询的一行中添加一个文件,会占用更少的资源吗?我将如何进行测试 看一看 $start = microtime(); // your process here $end = microtime(); // Compare duration.

我正在编写一个相当大的脚本,它将必须处理大量数据,但是其中有一部分用于日志记录,我想知道,在txt文件或mysql查询的一行中添加一个文件,会占用更少的资源吗?我将如何进行测试

看一看
$start = microtime(); 

// your process here

$end = microtime();

// Compare duration.