I'm using ordinary PHP code.
You can can find the code in this thread.
I did however discover something strange.
That's another problem I have.
Executing the script from an ISP works perfectly. Fast too.
Executing the same script on my server at home has a few problems.
First it just took a while (29 seconds).
And that was only a csv file containing 1000 lines.
A new problem is that the script, for no reason at all, simply just STOPS! No erro msg, no nothing.
Sometimes it stops after 300 lines, and sometimes after 500 lines.
The rows (lines) do get inserted into the DB though.
And I also found out that cuting the files down to 500, 300 and 100 lines, it STILL (on my own server) takes bloody 29 seconds!!!
Beats me why I get this problem.
Maybe it's something in my php.ini config file? Or some settings in MySQL??
Oh yeah... almost forgot :-p
I will try your solution of doing a SELECT to check if it exists or not.
If you could reply in my other thread (the same as above) I would much appreciate it.