UBB.Dev
Posted By: Kris Getting current board/post url - 12/05/2007 8:44 PM
Hi all,

I have yahoo sponsored links in some boards of my forum in a custom island. So this custom island by default appears between first and second post in every thread of a particular board.

To get the sponsored links we need to send a parameter called "serveurl" (which is the actual page URL that the ads are being served on). That means every time we contact the yahoo DB we need to pass this parameter. So I am wondering if there is a way I can get this page url?

Thanks in advance

Posted By: Gizmo Re: Getting current board/post url - 12/05/2007 11:08 PM
Code
<?php echo("http://". $_SERVER["HTTP_HOST"] . $_SERVER["PHP_SELF"]); ?>
should always echo out the current page (whatever it may be according to PHP).

Theres also
Code
<?php echo("http://". $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); ?>
© UBB.Developers