I have a website x-cart and I am needing to include vbulletin into one of the pages in x-cart.
The problem is that if I do an include, when I click on a link, it will take me out of the site. I need it to stay inside of the cart.
So what I am doing (don't laugh) is reading vbulletin into a string using file_get_contents, parsing the urls to what I need it to be using str_replace, and then echoing the string.
The problem is that the file_get_contents, doesn't seem to pull include files into the string. It seems to parse the actual php file and then display the output.
Is there any function that will pull the "displayed" html page into a string for parsing? Such as "readfile" does.
Or, if there's a better suggestion, I'd like to hear it.