when i go to a subfolder on my serer
i have a default page whuch isnt shown in the adress bar like this :
http://localhost/marketing
when i want to read this url on the server using : $PHP_SELF
i get the full path including the file name that isnt show in the adress bar!
how can i get the adress that is written in the adress bar?
[SOLVED] getting the adress br url
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
- pelegk2
- Forum Regular
- Posts: 633
- Joined: Thu Nov 27, 2003 5:02 am
- Location: Israel - the best place to live in after heaven
- Contact:
those 2 are not good
beacuse they make manipulations on the url and that's now what i want!
what i want is to know what the "visible" url tht was written in the user
url and not the actual 1 (beacuse the actual 1 include's "/index.php"
which is the default but not sen in the url!
what i want is to know what the "visible" url tht was written in the user
url and not the actual 1 (beacuse the actual 1 include's "/index.php"
which is the default but not sen in the url!
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
- pelegk2
- Forum Regular
- Posts: 633
- Joined: Thu Nov 27, 2003 5:02 am
- Location: Israel - the best place to live in after heaven
- Contact:
still thi is a manipultaion function
it takes a url that u give not what on the clients screen!
on the client screen is :
http://localhost
and the php server see's
http://localhost/index.php
what to do?
on the client screen is :
http://localhost
and the php server see's
http://localhost/index.php
what to do?
Perhaps:
Code: Select all
echo 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];