![]() |
PHP Dom - Program to select, and code?
Hello :)
I'm not the best at php, but i want to use php dom to grab some content from a site and paste it on mine (with an interval in hours). but i have searched for some days now.. and found out that it's complicated to use. anyway the question is, do anyone know if there's a program where i can select the code i want to grab and then the program do the rest? :) Thanks in advance |
I don't know any program. But maybe you can tweak this regex / code to fetch whatever you want from the site DOM.
This code fetch all links from codingforums.com php thread. file_get_contents() php.net: http://no.php.net/manual/en/function...t-contents.php PHP Code:
Edit: cURL is also an option. :) Last edit: http://php.net/manual/en/book.dom.php and http://www.php.net/manual/en/domdocu...lementbyid.php |
Thanks for the response :) I'll look at it and try to get it to work :) and let u know if i get a problem :P
|
| All times are GMT +1. The time now is 07:14 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.