Forum Moderators: coopster

Message Too Old, No Replies

Basic Syntax for file name .. This file is index.php

         

JAB Creations

12:08 am on Apr 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I want to be able to take the name of the file someone is looking at and put it in to a link. So if the file name is index44.php how do I do something like...

<a href="www.example.com/loadthis.php?index44.php">

JAB Creations

2:04 am on Apr 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



*JUST* found the php echo filename syntax! :-)

echo basename($_SERVER['PHP_SELF']) ;