I *beleive* you can do something like this:
<?php
$filename = include("file2.php");
echo $filename;
?>
Somewhere in file2.php:
<?php
return __FILE__;
?>
- Jon
On Jul 23, 2007, at 6:50 PM, Rahmin Pavlovic wrote:
Say I'm an include. Say several templates include me into what
will become
a single web page. How can I tell which template is calling me?
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php