![]() |
sponsored links |
|
|
sponsored links
|
|
1
28th April 14:13
External User
Posts: 1
|
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 |
|
|