Jump to content

Parsing With Curl


dilbertone

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.