How to get base url with php?
- by shin
I am using XAMPP on windows vista.
In my development, I have http://127.0.0.1/test_website/
Now I would like get this 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.
I will appreciate any help.
Thanks in advance.