Announcement

Collapse
No announcement yet.

PHP Echo filename? index.php echoed to HTML

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP Echo filename? index.php echoed to HTML

    I want to know how to have PHP echo just the name of the file you're looking at. Like while I'm writing /looking at newthread.php I would want to echo "newthread.php" of course without the quotes.
    John Bilicki III
    Webmaster of JAB Creations

  • #2
    I *JUST* found it!

    echo basename($_SERVER['PHP_SELF']) ;
    John Bilicki III
    Webmaster of JAB Creations

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X