dilbertone Posted October 3, 2012 Share Posted October 3, 2012 hello dear php freaks Well i am currently working on a small solution: I have tried various tutorials (examples of Curl - that i have found on the net) not oll of them work - some of them are broken! Now i try t o get some real-world-task! Especially interesting for me as a PHP/Perl-beginner what Curl - particularly for doing the form based search and selecting the individual entries. see the page: http://katholisch.at/content/site/pfarrfinder/index.html Here you can see for more results.. Hmm - i guess that the algorithm would be basically 2 nested loops: the outer loop runs the form based search, the inner loop processes the search results. i have approximatley 10000 pages to parse they are organized like that: http://Www.address/5307.html http://Www.address/5308.html http://Www.address/5309.html well - i try to write a algorithm Link to comment https://forums.phpfreaks.com/topic/269031-parsing-with-curl/ Share on other sites More sharing options...
trq Posted October 3, 2012 Share Posted October 3, 2012 Do you have a question? Link to comment https://forums.phpfreaks.com/topic/269031-parsing-with-curl/#findComment-1382464 Share on other sites More sharing options...
dilbertone Posted October 3, 2012 Author Share Posted October 3, 2012 hello dear trq many thanks for the answer. Do you have a question? How to count up from 0 to 10 000 in php well with that i will arrange all and will loop / or itterate over all pages with the resuts i try to give all the things to the simplehtmldom - see http://simplehtmldom.sourceforge.net/ trq - many thanks for any and all hints... i am happy for any hint greetings Link to comment https://forums.phpfreaks.com/topic/269031-parsing-with-curl/#findComment-1382466 Share on other sites More sharing options...
Mahngiel Posted October 3, 2012 Share Posted October 3, 2012 for( i=0; i<10000; i++) { .. } Link to comment https://forums.phpfreaks.com/topic/269031-parsing-with-curl/#findComment-1382471 Share on other sites More sharing options...
Christian F. Posted October 3, 2012 Share Posted October 3, 2012 I would strongly recommend that you start with the PHP manual's tutorial, and that you read all of the basic chapters (at least up to the chapter about classes). Knowing how a simple for loop works is almost as basic as you can get it, in any language. Lacking this knowledge tells me that there is a really high probability that you don't know much about the basics, perhaps even nothing. Something that will make things a whole lot more complicated for you than necessary. So start at the beginning, and learn the basic PHP syntax and constructs first. Link to comment https://forums.phpfreaks.com/topic/269031-parsing-with-curl/#findComment-1382503 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.