Re: PHP Data Mining/Data Scraping
| From: | Richard Lynch | Date: | Thu, 24 May 2007 23:51:26 +0000 |
| Subject: | Re: PHP Data Mining/Data Scraping | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255606@lists.php.net to get a copy of this message | ||
On Wed, May 23, 2007 5:37 am, Shannon Whitty wrote:
> THanks,
>
> That's what I thought...
>
> I really only need to check for one value = "success" - anything else
> should
> redirect back to the form entry page and display whatever result has
> been
> returned from the remote site.
>
> cUrl should be able to differentiate between a connection and an
> application
> failure shouldn't it?
>
> The way I see it:
>
> 1: If I can connect to port80 THEN continue ELSE goto:6
> 2: If I get a response THEN continue ELSE goto:6
> 3: If response contains "result tags" THEN continue ELSE goto:6
> 4: If "result tags" contains "success" THEN goto:5 ELSE goto:7
> 5: Display "success" and finish
> 6: Display connection error and resort to email and finish
> 7: Reload form and display error returned within "result tags"
This looks right, though I won't swear to it with all the goto:s...
I'm more of an if/else kinda guy... :-)
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?