If you go here
http://co.mments.com/
Enter the following url to track
http://torrentfreak.com/interview-with- ... ittorrent/
Click track
Now you will see it added to the page. How do they strip the page to display it like that
Please let me know if there are any examples out there or already done code to do this
Thanks..
how does this site strip the page down
Moderator: General Moderators
-
realtime158
- Forum Newbie
- Posts: 14
- Joined: Mon Nov 20, 2006 9:09 pm
Re: how does this site strip the page down
i'm sure they know what format it is displayed in... and i'm sure they're masters of regex.realtime158 wrote:If you go here
http://co.mments.com/
Enter the following url to track
http://torrentfreak.com/interview-with- ... ittorrent/
Click track
Now you will see it added to the page. How do they strip the page to display it like that
Please let me know if there are any examples out there or already done code to do this
Thanks..
-
realtime158
- Forum Newbie
- Posts: 14
- Joined: Mon Nov 20, 2006 9:09 pm
So has anybody seen anywhere
So has anybody seen anywhere any code to do this. At least strip the page down
YOu can use
preg_replace("#^.*<body[^>]*>(.*)</body>.*$#si", "\\1", $html);
YOu can use
preg_replace("#^.*<body[^>]*>(.*)</body>.*$#si", "\\1", $html);