Re: PHP Data Mining/Data Scraping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux