How to get base url with php?
Posted
by shin
on Stack Overflow
See other posts from Stack Overflow
or by shin
Published on 2010-05-12T16:18:51Z
Indexed on
2010/06/09
13:52 UTC
Read the original article
Hit count: 208
php
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.
© Stack Overflow or respective owner