Hi Guys
Hope you are all well.
So just some background first. I have inherited a PHP system written by a previous no long gone Developer. None of my current team including myself are PHP developers so to date our troubleshooting so has been mostly googling and Trial and Error.
The problem we face is we have these PHP reports which when run can take up to 30 minutes to return or others just never return at all
The weird thing though is if I take the SQL that is being run and execute it in the console it returns in under a second
So I am not sure where the bottleneck is when run from the Browser and PHP page
I am also not sure how to even start debugging this
To note it is a Linux Debian Box and the Browser I am running directly on the same box so as to eliminate any network issues as the cause for the slowness
I am hoping that this forum can assist me in where to look or even just how to begin debugging the issue
Thanks
Mark