Avatar ·

Error "Maximum execution time of 30 seconds exceeded" when processing JSON in PHP

Hello everyone! I'm new to PHP and ran into a problem. I'm writing a script that loads a large JSON file (about 50 MB) with product data and processes it. When I run it on a local server (OpenServer), after 30 seconds I get the error: "Fatal error: Maximum execution time of 30 seconds exceeded". Here's my code:\n\n```php\n\n```\n\nI've heard that you can increase the execution time via php.ini, but that doesn't help on hosting. Maybe there's another way? I need the entire JSON, I can't skip data. Please advise how to solve the problem without increasing