Don't think that a option like this exists. But maybe you should consider using
include_once or require_once Also before you define the function use the function_exist("") and if the function already exists don't redecleare it. Jerry Verhoef -----Original Message----- From: Henning Sprang [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 2:24 PM To: [EMAIL PROTECTED] Subject: [PHP] backtracing of includes Hy, I would like to know if there is a way to get information on the include hierarchy of files in php, especially to find out where which file is included and trace back the line from some file until the first called php file. My special case here and now is that I get an error that some function is already declared and cannot be declared again because of this. I know i must have included the file with that function somewhere already, but as i have lots of nested includes I have trouble right now to find the place where ist already happens. I know I can prevent those things in future by using things as require_once and so on, and i can search through all the code, making yself a map on paper to see which file includes what, but what i really want to know is, if i can ask some function to tell me where the function which makes the error stated above and from where the file is included, and from where this file again is include, going as far back until i have my first-called php file. I hope you can understand what i mean, henning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] The information contained in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any form of disclosure, production, distribution or any action taken or refrained from in reliance on it, is prohibited and may be unlawful. Please notify the sender immediately. The content of the email is not legally binding unless confirmed by letter bearing two authorized signatures. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]