get_included_files to find originating script?
View Single Post
04-08-2008, 03:39 AM
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Originally Posted by
It seems that the array returned by get_included_files always has this as element 0. I haven't been able to find a definite answer as to whether or not this is reliable.
When in doubt, do what I like to do. Make a file called test.php, and code what you need it to do. Then try and make it break. I embedded the call to get_included_files() in a bunch of different ways and it always returned the parent as $included_files_array so it would seem that this method is pretty reliable if not bulletproof.
View Public Profile
Send a private message to delayedinsanity
Visit delayedinsanity's homepage!
Find More Posts by delayedinsanity