I have an SQL that brings back all the users of a system in a MySQL database with PHP and I need to get these users and move them to another system (don’t worry about the fields, I already map them). The problem is that I have more than 67000 users in the database. Is there any way I can do that with PHP and get all the results at once?? Cause I tried and give me a error, not an error, but the PHP can’t return all the results at once.
Share
You probably have reached PHP’s default memory limit.
You have (at least) 2 options:
https://www.php.net/manual/en/ini.core.php
Take care you only do that for your current script, not systemwide by modifying php.ini.
In both cases you might want to increase the time your script can run too. Have a look at max-execution-time.
https://www.php.net/manual/en/info.configuration.php#ini.max-execution-time