I have a script I've been using for years without any problems. It loads the Clickbank products XML file into MySQL. The problem is that it uses fopen and get_file_contents in a couple of places to do it, which won't work with the default configuration of PHP 5.
I need a fix to make it work using cURL first and standard PHP as the backup. It is a one page problem consisting of maybe 10-20 lines.
I need it pretty much compatible with both PHP 4 and 5 regardless of configuration.
I have the script installed on a server with PHP 5.2 right now and that's where you will apply the fix.