I have a website that asks for files without file extensions. For example, the URL http://www.example.com/foo.php
should simply access http://www.example.com/foo
. < /p>
But please forgive me as I am new to PHP but I would also like the
This will display the full URL, including the file extension.
Is there anyone with more PHP knowledge than me who can modify the above line of code to exclude the file extension?
Thanks in advance!
You can try to use str_replace to remove the extension
Simply put, you just replace the extension with "" or nothing will get you the URL you want.