Search found 2 matches

by cronus
Sat Dec 20, 2008 6:57 pm
Forum: PHP - Code
Topic: output another website content in your page
Replies: 1
Views: 181

output another website content in your page

I wonder if anyone has php code for doing this? Either using DOM or cURL you can get just source code, but when you echo it, it sometimes returns page without images or css styles, so maybe somebody knows how to fully echo another page?

Thank you!
by cronus
Sat Dec 20, 2008 10:27 am
Forum: PHP - Code
Topic: string splitting (preg_split)
Replies: 1
Views: 205

string splitting (preg_split)

Hello, I got html code, and what i want to do is to split it into: tags, words, special html entities (for example: &nbsp, &copy) and punctuation marks. For example: <html> <head> Title, bla bla </head> <body> some &nbsp text </body> </html>   Output: Array = ( [0] = <html> [1] = <head> ...