Good people!
I have a small problem (problem because I do not work too much with php).
I'm using a phpbb-linked script that displays the topics of a particular forum on an external page, but cms returns me only the relative url (the script is in the root of the site and phpbb is installed in ./forum), with this can not create an rss for example, which requires me to absolute url.
The format returned by phpbb is ./forum/viewtopic.php?f=xx&t=xx
What I need is not even so deep in phpbb, but simply a way of transforming this relative path into an absolute path, simply remove that first point and add http://exemplo.com
to that place, and then http://exemplo.com/forum/viewtopic.php?f=xx&t=xx
.
How can I do a function to work this using php (maybe a function that uses regex, I do not know)?
Thank you in advance!