PHP - Reference to Calling Document?

41 views
Skip to first unread message

Warren Michelsen

unread,
Jul 10, 2010, 12:16:08 PM7/10/10
to Web Authoring List

Is there a way to reference the document containing the code being evaluated in PHP?

For example, is there a generic term to be used in place of "index.html" in the example below to indicate the document wherein this filemtime call resides?

instead of:
filemtime("index.html")

filemtime($RefToMe)


Any such thing exist?

Scout

unread,
Aug 7, 2010, 10:39:52 PM8/7/10
to Web Authoring
I don't follow what you are trying to reference. -scout

Greg Raven

unread,
Jan 22, 2012, 6:14:39 PM1/22/12
to web-au...@googlegroups.com
Does this do what you want?

<?php echo $_SERVER['PHP_SELF']; ?>
Reply all
Reply to author
Forward
0 new messages