Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Question about executing functions?

Question about executing functions?

Question about executing functions?

I'm working on a php prog where the original author used an include_once to import an external file that contains approx 30 separate functions.
Trying to debug one of them I was curious as to when a particular function executed so I put a debut statement near the top of each function printing an entry to the error log that the particular function has been called and executed.
What I found was surprising. It looks like each function is called, in turn. at the start of the program execution. However the logging shows that the functions are called each time a logic cycle is executed and some functions are called multiple time in succession. And no, the logic is NOT in a loop. If fact, some of the functions that are showing being executed are NOT called from the program at all.
So I'm wondering, why would the debug log so so many calls to so many functions if they're not being called from within the program.

Just wondering.

RE: Question about executing functions?

Mutliple users?
Ajax requests?

You expect to read a single pass, while you might simply find multiple requests done and executed in parallel.

Bye, Olaf.

RE: Question about executing functions?


Callback functions ?


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close