Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Oct 2009
    Posts
    43
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Is there any way to see the functions that are called after pushing a link or a butto

    Hi,

    is there any way to see the functions that are called after pushing a link or a button in a web page done with PHP?

    I user Firefox.

    Regards

    Javi

  • #2
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    From your browser? No.

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Using PHP you can add a debug_print_backtrace(); at the time you want to see the call stack. If you want more information about the actual calls, handle the debug_backtrace(); instead, which will reveal information about the stack (function calls, arguments and types, file, lines, class / object information available, etc). Actually, now that I think of it I think this is precicely what the Exception class uses for generating information O.o
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • #4
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    Quote Originally Posted by Fou-Lu View Post
    Using PHP you can add a debug_print_backtrace(); at the time you want to see the call stack. If you want more information about the actual calls, handle the debug_backtrace(); instead, which will reveal information about the stack (function calls, arguments and types, file, lines, class / object information available, etc). Actually, now that I think of it I think this is precicely what the Exception class uses for generating information O.o
    nice one, I forgot all about those functions.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •