F
F
FedorYemel2017-06-21 02:12:44
PHP
FedorYemel, 2017-06-21 02:12:44

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

2 answer(s)
A
Angry Negro, 2017-06-21
@FedorYemel

<?
$text = file_get_contents("http://site.com/index.php");
$data = array();

preg_match("/<div class=\"popupmenu-item\">(.*)<\/div>/Uis", $text, $out);

print "$out[1]";
?>

B
betal, 2017-06-21
@betal

Press Ctrl+U
Find the required block, Ctrl+C, Ctrl+V
View all styles (what is written in id="" and class="") and copy to yourself,
Copy all pictures and icons.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question