Link to home
Start Free TrialLog in
Avatar of propractice
propractice

asked on

Get external/non-local webpage source with PHP? - convert from ASP?

this was a previous question I had:
https://www.experts-exchange.com/questions/21927719/Able-to-get-iframe-non-local-source-html.html

this was the answer:
https://www.experts-exchange.com/questions/21926190/stop-Iframe-Redirect.html#17155324

now, can this be done in PHP as well? in the same way, but with different functions?  in a different way?

i guess all i really need to know is if there is something similar to the ASP script creating an XMLHttp object which "actually retrieves the entire contents of the page".
i am just trying to intercept the HTML source contents.

thank you in advance.

-- Jason
ASKER CERTIFIED SOLUTION
Avatar of TeRReF
TeRReF
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You could use this page again:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>Untitled Page</title>
</head>
<body>
<iframe src="frameshow.php" style="width:80%;height:300px;"></iframe>
</body>
</html>

Name the above php script framshow.php and you're ready to go...