Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > Curl - Absolute Path Problem. Require Help
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 28th April 14:13
maanav jackson
External User
 
Posts: 1
Default Curl - Absolute Path Problem. Require Help



Hi

I am displaying a third party webpage into a variable using curl
library. When i am displaying the variable in the browser using echo
command as shown below.

echo $pagecopy;

Browser is not displaying the page as it display when we visit the
page directly in browser. Instead it references all the file path,
css path, form action path to http://localhost/filenamepath OR CSS
Path or FormAction Path instead of http://www.xyz.com/filepath (eg,
http://www.othersite.com/books/1stGoodBook.html).

So in the browser all the css, images is not displaying properly.
since relative path is referenced to local host (http://localhost/)
instead of website domain direct path (eg. http://otherwebsite.com/).

How to rectify this problem so that it is referenced to absolute path
instead of relative path and all the css, files, webpages works
properly.

Regards
Maanav Jackson
maanavjackson@gmail.com
  Reply With Quote


  sponsored links


2 28th April 17:36
mrclay
External User
 
Posts: 1
Default Curl - Absolute Path Problem. Require Help



Add a BASE element: http://htmldog.com/reference/htmltags/base/

Steve
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666