Anyway I can turn off the 500 error? I have a recursive function that is being set to be called a few hundred times if possible, but before that can happen and proceed with the rest of the code it calls a 500 error. (For those interested its a dynamic XML to MySQL script that is set to go how ever many levels deep it needs to.)

Anyway I can force the script to run and not get the 500 error?

Member Avatar for rajarajan2017

Set the display_errors value to off in php.ini config file

display_errors = Off
<?php

error_reporting(0);

?>

Nope, that doesn't turn off 500 errors.

I know why it's doing that, too much memory/CPU being used.

Member Avatar for rajarajan2017

Like the above link said, why dont you try with the log files to identify the reason for the error?

I know why, it's using too much memory, same file, same circumstances will run 1/10 times, but 500 9/10 times. Can I change this in Apache or PHP.ini somewhere?

Member Avatar for rajarajan2017

Why you not change your recursive function to utlize the low memory?

Keep some interval for every 50 times

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.