Posted by: Anil Kumar Panigrahi in: ● June 27, 2010
The following script to copy the text from remote url using php code.
<?php $regex = '/]*>(.*<\/body>/smi'; /*END config, BEGIN html*/ $data = file_get_contents($siteName) or die('Cannot read ' . $siteName); preg_match($regex, $data, $cleanData); if(!empty($cleanData)) $data = $cleanData[1]; echo $data; ?> <!-- HTML Footer Data here... -->
This is simple copy text from another site, but it will be useful for who are new to php.
1 | Wordpress Themes
10 de July de 2010 to ● 12:52 pm
Nice brief and this fill someone in on helped me alot in my college assignement. Gratefulness you on your information.
2 | GrawlCore
15 de July de 2010 to ● 2:31 pm
it was very interesting to read.
I want to quote your post in my blog. It can?
And you et an account on Twitter?
3 | KNCH
31 de July de 2010 to ● 5:49 pm
I would like to exchange links with your site http://www.anil2u.info
Is this possible?
Comments