Ok, since there appears to be no way to run mysql_info directly from php (except for in the cvs version), I have made the following (ugly) work-around:
A simple perl-script that performs the "LOAD DATA INFILE" followed by printing the output of mysql_info to stdout. From php I simply execute this perl script with the standard back-ticks syntax so that I can capture its output into a variable.
This works, but if anyone has a better way to do this, please let me know.
Thanks,
Lars