Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: [PHP5] Trace function

Started 1 month, 2 weeks ago by dinonet
Hi is there a trace function in php to display function calls, queries, and form submissions on that page when I submit? I seem to remember trace function but it's been a while. I'm just trying to track down what is being called and exactly happening with a this site. Any help would be greatly appreciated. Thanks!
Site: Dev Shed Forums - Open Source web development  Dev Shed Forums - Open Source web development - site profile
Forum: PHP Development  PHP Development - forum profile
Total authors: 3 authors
Total thread posts: 3 posts
Thread activity: no new posts during last week
Domain info for: devshed.com

Other posts in this thread:

simshaun replied 1 month, 2 weeks ago
Viewing function calls yes.. see debug_backtrace(). You could also use xdebug or related extension to create log files on each script execution. Personally, I would use xdebug. Query logging would have to be built-in to your app or enabled on your database server. Logging form submissions would also need to built in to your app, or you could check the Apache log for a *...

msteudel replied 1 month, 2 weeks ago
If you are just doing debugging, one method is just to echo/exit values. If you need the page clear of debugging information you can also use: error_log( $str ); To send stuff to the php_error log. If you have access to the command line and can do a tail-f on the php_error log this is very handy debugging method. Another alternative is to create a little function that ...

 

Top contributing authors

Name
Posts
simshaun
1
user's latest post:
[PHP5] Trace function
Published (2009-11-06 15:43:00)
Viewing function calls yes.. see debug_backtrace(). You could also use xdebug or related extension to create log files on each script execution. Personally, I would use xdebug. Query logging would have to be built-in to your app or enabled on your database server. Logging form submissions would also need to built in to your app, or you could check the Apache log for a *possibly* less detailed overview.
dinonet
1
user's latest post:
[PHP5] Trace function
Published (2009-11-06 15:11:00)
Hi is there a trace function in php to display function calls, queries, and form submissions on that page when I submit? I seem to remember trace function but it's been a while. I'm just trying to track down what is being called and exactly happening with a this site. Any help would be greatly appreciated. Thanks!
msteudel
1
user's latest post:
[PHP5] Trace function
Published (2009-11-06 17:49:00)
If you are just doing debugging, one method is just to echo/exit values. If you need the page clear of debugging information you can also use: error_log( $str ); To send stuff to the php_error log. If you have access to the command line and can do a tail-f on the php_error log this is very handy debugging method. Another alternative is to create a little function that spits out a js alert box: e.g. PHP Code: function  jsAlert...

Related threads on "Dev Shed Forums - Open Source web development":

Related threads on other sites:

Thread profile page for "[PHP5] Trace function" on http://www.devshed.com. This report page is a snippet summary view from a single thread "[PHP5] Trace function", located on the Message Board at http://www.devshed.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity