Page 1 of 1

Read code from another site

Posted: Sun Oct 24, 2004 3:34 pm
by Cammet
Hi all,
How would i go about reading into a mysql database all the html code on a page that is between certain tags? IE:

Code: Select all

<html>
<body>
<p> Hey All</p>
Just wanted to say hi.
</body>
</html>
How would i copy All the code between the and including <body> </body> tags?

Posted: Sun Oct 24, 2004 3:45 pm
by mudkicker
you can do it with [php_man]preg_match[/php_man]()

Posted: Sun Oct 24, 2004 4:21 pm
by Cammet
If its not too much trouble could you give me a small example?

Posted: Sun Oct 24, 2004 7:02 pm
by m3mn0n
Click that link. It has tons.