Hello,
I'd appreciate suggestions as I hash out my idea. Perhaps I'm going about
this the wrong way.
I have users using a third party windows application. They can export data
from this application directly to a text file (CSV). So far as I know,
there is no way to make this application talk directly to the MySQL server.
We're talking thousands of records here - it's not practical to have an HTML
form handled by PHP which inserts the data to MySQL... or is it??
What I thought about doing was to have them export the data to the CSV file
& then upload it to the web server using FTP. Once uploaded, I would have
them go to a page with a PHP script which would run the command to import
the data to MySQL. PHP can run shell commands, as I understand it from the
manual. Perhaps this would be a bitch on Windows, though.
Is this sensible? Suicide? Brilliant? Stoopid?
What would be the best method of tackling this issue?
FWIW, the site runs Apache on Windows 2000 w/ PHP4 / MySQL 4.
Thanks.
I'd appreciate suggestions as I hash out my idea. Perhaps I'm going about
this the wrong way.
I have users using a third party windows application. They can export data
from this application directly to a text file (CSV). So far as I know,
there is no way to make this application talk directly to the MySQL server.
We're talking thousands of records here - it's not practical to have an HTML
form handled by PHP which inserts the data to MySQL... or is it??
What I thought about doing was to have them export the data to the CSV file
& then upload it to the web server using FTP. Once uploaded, I would have
them go to a page with a PHP script which would run the command to import
the data to MySQL. PHP can run shell commands, as I understand it from the
manual. Perhaps this would be a bitch on Windows, though.
Is this sensible? Suicide? Brilliant? Stoopid?
What would be the best method of tackling this issue?
FWIW, the site runs Apache on Windows 2000 w/ PHP4 / MySQL 4.
Thanks.
Comment