I am using XAMPP on Windows Vista. In my development, I have http://127.0.0.1/test_website/
.
How do I get http://127.0.0.1/test_website/
with PHP?
I tried something like these, but none of them worked.
echo dirname(__FILE__)
or
echo basename(__FILE__);
etc.
Edited at @user3832931 's answer to include server port..
to form URLs like 'https://localhost:8000/folder/'