PHP CURL set root domain
Hi, I'm trying to login to a different site (site#2) within a frame of a page in site#1 automatically to display the index page contents using PHP curl. I can get into the site, but all the images cannot be displayed and links don't work because the root domain is the original site's (The site#2 uses relative paths for the images source links and href urls). So just wondering how I can change the root directory, besides replacing all / ./ ../ with site#2's domain name and path info?
|