Page 1 of 1

How to see if a request is received by php

Posted: Thu Sep 25, 2008 12:58 pm
by msoultan
We are running phpBB and sometimes when you post a message, it doesn't get committed to the MySQL database. We've tailed the database logs and confirmed that the request never gets received by MySQL and we've also dissected the Apache logs and confirmed that the form submission has been made. So, now I would like to somehow confirm that php has actually received the request. Could anyone point me in the right direction to enable that kind of logging if it exists?

Thanks!
Mike

Re: How to see if a request is received by php

Posted: Thu Sep 25, 2008 1:18 pm
by VladSun
A simple debug would be to insert

Code: Select all

error_log('PHP code at this pont has been executed ');
at critical sections in your code.

Re: How to see if a request is received by php

Posted: Thu Sep 25, 2008 1:32 pm
by msoultan
Unfortunately I don't know how all the phpBB code is getting routed and I wanted to check if the request was being received. Is there some kind of PHP logging available?

thanks!
mike