Hi

Is there a function in php for a file to get its own name?

Thanks

    <?php
    echo $_SERVER['PHP_SELF'];
    ?>

      Hi

      Thanks, that worked great, but I've got another question. I've written a php file that uses its own filename to go to the correct tag in an xml document to grab the correct information. However, I need to use a php include to put it into another document. Is there a way for the included file to get its own name, and not the name of the document including it?

      Thanks

        I'm just wondering how many times this week this question will be asked.....

          Write a Reply...