View Single Post
  #36  
Old 11-03-2006, 07:33 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

i am not that familiar with VC6, but does it support an fopen(url) kind of process, that you can then read that data into a buffer and parse it? You could then tell the user to simply enter their MageloID and behind the scenes grab the page, parse, and stuff. I do this with PHP, but hadn't tried with any other scripting language.

Here's fragments of a typical web page parser I use for PHP, for example:
Code:
/* open the page $url */
$rslink = @fopen($url,"rb");

/* load into a buffer */
while(!feof($rslink)) {
  $this->rsBuffer .= @fread($rslink,1024);
}

/* parse the buffer using regex, or however you do now */
function ParseBuffer()
Reply With Quote