I am using Johncms 4.4 , and I want to show current page url in my site .
Problem is , I tried with the following code
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
echo '<a href="'.$url.'">Page url</a>';
But it gives error
"This page contains the following errors:
error on line 49 at column 360: EntityRef: expecting ';'
Below is a rendering of the page up to the first error.
"
what to do ?
do u ask me?
do u want me to help u?
do u know that i dont understand php language?
So, why do u ask this question to me?
U ask to wrong guy.
I can't help u.
hehe. . .
im sorry, i was practising my simple english and i am prectising it too now.
Did i do it? I didn't.
i did, i didn't. I did.
u dont understand what i said. Do u?
davinci (17.07.2012/21:44)
do u ask me?
do u want me to help u?
do u know that i dont understand php language?
So, why do u ask this question to me?
U ask to wrong guy.
I can't help u.
hehe. . .
You have errOr oN double quotz. Try this.. Already tested.
$url='http://' . $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
echo '<a href="'.$url.'">page url</a>';
echo $url;