Posted by Jim Carlock on 01/26/06 03:42
Another question...
Using the following code,
<?php require("/common/latest.php"); ?>
Is there a way to detect which page "required" latest.php ?
For instance...
Domain1, homepage (domain1.com/index.php) and
(domain1.com/talks/php/index.php) both employ ...
<?php require("/common/latest.php"); ?>
Domain2, provides similar multiple pages accessing the same
content by requiring...
<?php require("/common/latest.php"); ?>
Is there a php function that detections the name of the calling
page? And is there another way to do this? I'm working with
something along the lines of...
<?php require("/common/latest.php?rp=domain1.com/index.php"); ?>
Any other suggestions or a PHP server variable to detect the
name of the caller (calling page)?
Thanks.
Jim Carlock
Post replies to the newsgroup.
Navigation:
[Reply to this message]
|