Some differences between browser running and command line running in php

the code that runs the page is shown in the picture, all written by source code. Because the main core class is the company use project, so it is not convenient to put it up, if you have any questions, you can ask me directly. This is a data collection script that I run at the same time, one through the browser and the other in command line mode. But at the same time, the amount of data obtained by the command line is not the same as that obtained by the browser. Even the browser gets twice as much as the command line. But the strange thing is that they are not fixed in this pattern, and the amount obtained by the command line is slightly more than that obtained by the browser.
so I would like to ask, are there any factors that cause this difference between command line running and browser running?

Php
Mar.02,2021
The php.ini configuration in

cli mode is partially overwritten. Refer to the official URL (override php.ini setting options): http://php.net/manual/zh/feat.


impossible, unless it's your external dependency. The speed cli should be a little faster, but very small.

Menu