04-08-2008, 03:39 AM
|
#3 (permalink)
|
|
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
|
Quote:
Originally Posted by solistus
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[0] so it would seem that this method is pretty reliable if not bulletproof.
-m
|
|
|
|