shadedecho
Programmer
ok, simple enough (or at least it sounds that way) question:
blah.php:
blah.inc:
this produces:
blah
blah.php
I want to know how the include file can be "self-aware" such that it knows its own filename, like "blah.inc" or whatever... is there a way to do this?
the output would then be:
blah
blah.inc
Thanks!
blah.php:
Code:
<?php
echo "blah<br>\n";
include("blah.inc");
?>
blah.inc:
Code:
<?php
echo $PHP_SELF;
?>
this produces:
blah
blah.php
I want to know how the include file can be "self-aware" such that it knows its own filename, like "blah.inc" or whatever... is there a way to do this?
the output would then be:
blah
blah.inc
Thanks!