Hi
Is there a function in php for a file to get its own name?
Thanks
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
FILE will do the trick.
Check it out: http://www.php.net/manual/en/language.constants.predefined.php
I'm just wondering how many times this week this question will be asked.....
At least once more Weed LOL