Such a problem arose: From the database I made the export of the table into a PHP array. Also in the online store there are about 50K items. The table that was exported from another online store, and accordingly the names of the fields are different. It is necessary to write a script that will assign the required fields from the array to the commodity items. The goods and the array have a common property “article” - the values of which coincide. It is necessary to sort through all the goods, take the article from the i-th product and look for its array and assign values from the array to the product.
Now the question: File with an array in a separate file, its size is huge, how to connect it to the script, what would be easier to work (the script worked faster), via include or require ? You will also have to change the script execution timeout. Is it possible to work with this array at all, or is it better to do sql queries? What can you advise? Only the database itself is located on another server and the work will be performed on another one.