I want to read the content of web page using php and preview it using iframe in HTML page,I make like this to avoid cross origin problems that avoid me to reach other websites content using javascript.
I want to replace each url in a website content using php, I want to replace all urls for src and href tags in HTML file.
for example I want to replace this
<link rel="stylesheet" href="css/style.css" type="text/css" />
to
<link rel="stylesheet" href="http://stackoverflow.com/css/style.css" type="text/css" />
and the same for java script files and img and other tags.
Any one can help ?
Did you try a simple solution by placing the following tag into the head section of the page?
ps: description http://www.w3schools.com/tags/tag_base.asp