28th April 14:13
Curl - Absolute Path Problem. Require Help
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.
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,
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