FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP script to get name of file which houses the script?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP script to get name of file which houses the script? [message #185011 is a reply to message #184997] Sun, 23 February 2014 21:57 Go to previous message
rnetzlof is currently offline  rnetzlof
Messages: 2
Registered: February 2014
Karma:
Junior Member
On Sunday, February 23, 2014 2:47:04 PM UTC-5, rnet...@gmail.com wrote:
> I have a number of files which contain PHP scripts like:
>
> <?php
> $file_name='mtg10.php';
> include 'format_date.php';
> ?>

Yes $file_name=basename(__FILE__); does just what I wanted. Thanks to all who replied.

Bob Netzlof
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help with regex
Next Topic: JavaScript to PHP
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 04:43:17 GMT 2024

Total time taken to generate the page: 0.04805 seconds