How to get Current filename

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tequila27
Forum Newbie
Posts: 2
Joined: Mon Sep 07, 2009 10:24 am

How to get Current filename

Post by tequila27 »

Is there a function to return the name of the current file (the PHP file that's being executed)?
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: How to get Current filename

Post by jackpf »

The __FILE__ magic constant? ;)
Post Reply