|
Posted by Alan Jones on 05/13/07 02:44
On 12 May 2007 19:20:20 -0700, shimmyshack <matt.farey@gmail.com>
wrote:
>> Thank you very much for the help. :) I'll give your recommendation
>> a run thru, but is there a way to make basename, or a similar
>> function, simply return the filename of the parent page; the page
>> the include is in? Thanks again, I really appreciate any help I can
>> get.
>
>basename($_SERVER['SCRIPT_FILENAME']);
>does exactly that, try it.
It returns the filename of the file it is in. I ran...
echo basename($_SERVER['SCRIPT_FILENAME']);
....from within the 'include' file index_body.php and it returned
that same filename.
I need the code in the include file to somehow determine, or derive,
the name of its 'parent' file in a given instance. This procedure
would be happening within the include file as it resides in the
parent file.
Again, thanks for racking your brain on this with me. I'm at a total
loss... :(
[Back to original message]
|