Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 6th, 2006, 04:26 PM
Registered User
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?

Similar Threads
Thread Thread Starter Forum Replies Last Post
why isn't CURL logging me in ? jjk2 Beginning PHP 1 October 5th, 2008 07:29 PM
cURL is resubmitting the page diamondField PHP How-To 1 September 23rd, 2008 04:25 PM
curl spbharti Pro PHP 1 April 20th, 2006 02:34 PM
PhP - MySql Connect From Another Domain mani_he Pro PHP 13 December 21st, 2004 01:03 PM
PHP uploaded to root directory arnec BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 August 15th, 2003 03:24 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.