Answer the question
In order to leave comments, you need to log in
How to display a piece of code from one site on another?
You need to cut a piece (probably parse) of one site and place it on another site.
But you need to insert it into an HTML page.
Answer the question
In order to leave comments, you need to log in
<?
$text = file_get_contents("http://site.com/index.php");
$data = array();
preg_match("/<div class=\"popupmenu-item\">(.*)<\/div>/Uis", $text, $out);
print "$out[1]";
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question