Connecting Tech Pros Worldwide Help | Site Map

Finding the location of the function

  #1  
Old July 17th, 2005, 02:30 PM
yehaimanish@gmail.com
Guest
 
Posts: n/a
To find out from where the particular function was called, we can use
debug_backtrace ( ) inside the function. Is there any way to find in
which the function is. I mean if there are large number of files in the
project and I want to find out where the function is.


................ code ...............

// where is the location of the function()

function()

................ code ...............

  #2  
Old July 17th, 2005, 02:30 PM
Chung Leong
Guest
 
Posts: n/a

re: Finding the location of the function


debug_backtrace() does give you that information if I remember
correctly.

  #3  
Old July 17th, 2005, 02:30 PM
PagCal
Guest
 
Posts: n/a

re: Finding the location of the function


yehaimanish@gmail.com wrote:[color=blue]
> To find out from where the particular function was called, we can use
> debug_backtrace ( ) inside the function. Is there any way to find in
> which the function is. I mean if there are large number of files in the
> project and I want to find out where the function is.
>
>
> ............... code ...............
>
> // where is the location of the function()
>
> function()
>
> ............... code ...............
>[/color]

http://us3.php.net/debug_backtrace

and see 'file' array argument returned.
  #4  
Old July 17th, 2005, 02:30 PM
chotiwallah
Guest
 
Posts: n/a

re: Finding the location of the function


see
http://groups-beta.google.com/group/...18b396e0caa80d

micha

  #5  
Old July 17th, 2005, 02:30 PM
chotiwallah
Guest
 
Posts: n/a

re: Finding the location of the function


oops, posted a wrong link

here's the right one:

http://groups-beta.google.com/group/...5ab1e664e396ac

micha

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding geographic location of IP address axlq answers 11 August 23rd, 2007 03:25 PM
Finding out if a computer is connected to the network NSF12345 answers 0 September 15th, 2006 12:25 PM
Finding location of the mouse without event object beatsoup answers 1 June 8th, 2006 02:35 AM
determining the location of a script on the server? Firefox bug won't let me petermichaux@gmail.com answers 4 March 21st, 2006 09:55 PM