Solved

determining php routine name or file name

Posted on 2008-09-29
4
203 Views
Last Modified: 2012-05-05
Hi -

Question, I am inserting some error handling.  If a query creates an error, I would like to log the name of the routine or perhaps the corresponding php filename.

Is this possible?  if so, what is the command to get the routine name or the php filename?

Thanks.

Pete
0
Comment
Question by:shafer23
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 27

Expert Comment

by:Cornelia Yoder
ID: 22602111
0
 

Author Comment

by:shafer23
ID: 22602182
Hi thanks - that returned the name of the index file, but what I was trying to get is the name of a php file that is referenced by that index file (i.e. a file that does not appear within the url).  Maybe that is not possible???

Pete
0
 
LVL 27

Accepted Solution

by:
Cornelia Yoder earned 500 total points
ID: 22602310
I'm not sure what you mean by the "index file", but look through the environmental values that you can get here:
http://hoohoo.ncsa.uiuc.edu/cgi/env.html
and see if any of them are what you want.

If not, it's possible to just put a variable such as $scriptname='whatever.php' into each script, so the error routine can use it.
0
 

Author Closing Comment

by:shafer23
ID: 31501430
thanks - that is probably what I will do.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question