Hellovrybody Can anybody give me a short script to define the variable "ID_01" as the current url. Thanx. m
Do you mean something like this: $ID_01 = substr($_SERVER['SERVER_PROTOCOL'], 0, strpos($_SERVER['SERVER_PROTOCOL'], '/')) . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
Or like this: define("ID_01", substr($_SERVER['SERVER_PROTOCOL'], 0, strpos($_SERVER['SERVER_PROTOCOL'], '/')) . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
Thanx... for all the info... Yes i think thats what i was looking for... I will try out all three of them I am trying to add dynamic ids to Masugas Rating Bar... But before i can try it i still have to fix another problem. Does anybody here have experince with his rating bar. In my case only one vote can be given.....
The method in post 3 worked... But unfortuneately there were other problems after that. Is there a way to define $ID_01 as the meta tag "topic_number" <meta name="topic_number" content="00001">
This on top of your page: <?php $ID_01 = substr($_SERVER['SERVER_PROTOCOL'], 0, strpos($_SERVER['SERVER_PROTOCOL'], '/')) . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?> Then this in your HTML's Head tag as HTML-centric-PHP: <meta name="topic_number" content="<?php echo $ID_01; ?>">