I need to download a file from a url & read it contents so that it can be inserted into the database.
In php I'm able to do this with file_get_contents & for getting the required details preg_match.
How can this be done in C ?
I need to download a file from a url & read it contents so that it can be inserted into the database.
In php I'm able to do this with file_get_contents & for getting the required details preg_match.
How can this be done in C ?
Not entirely trivial - something like libcurl will help you, I think.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
cURL can be used in C ?
In the form of a library, yes:
cURL - Frequently Asked Questions
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.