How to see if a request is received by php

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
msoultan
Forum Newbie
Posts: 5
Joined: Tue Nov 20, 2007 1:19 pm

How to see if a request is received by php

Post 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
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

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

Post 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.
There are 10 types of people in this world, those who understand binary and those who don't
msoultan
Forum Newbie
Posts: 5
Joined: Tue Nov 20, 2007 1:19 pm

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

Post 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
Post Reply