I am currently using cURL to pull a page from another site, however i want the images and links to work. all images and links on this site are relative to their root directory… does anyone know how to replace strings in the cURL page before it is displayed?

You can use preg_replace() or just str_replace() to update all the links to absolute.

Sponsor our Newsletter | Privacy Policy | Terms of Service