Echo filename onto webpage?

Discussion in 'PHP' started by aj22, Aug 18, 2007.

  1. #1
    How can I echo the filename minus the extension onto a webpage?

    www.mydomain.com/index.html

    I would want 'index' to be able to be echo'd onto the page...


    possible?
     
    aj22, Aug 18, 2007 IP
  2. technoguy

    technoguy Notable Member

    Messages:
    4,385
    Likes Received:
    308
    Best Answers:
    0
    Trophy Points:
    205
    #2
    try using $PHP_SELF and explode together you will get what you want.

    thank you
     
    technoguy, Aug 18, 2007 IP