0

Hi

I would be really thankful if someone could please help me with this:

I have a file upload script that uploads csv files to the web server. After the file upload another script called extraction.php starts which reads the contents of the file and puts them to the respective tables in the database.

Now my problem is I want it to execute in the background but I cannot use exec as my application may run on windows as well. So I would need an OS independent solution.

Please help me with this.

3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by diafol
0

Hi

I would be really thankful if someone could please help me with this:

I have a file upload script that uploads csv files to the web server. After the file upload another script called extraction.php starts which reads the contents of the file and puts them to the respective tables in the database.

Now my problem is I want it to execute in the background but I cannot use exec as my application may run on windows as well. So I would need an OS independent solution.

Please help me with this.

i have same Problem

0

Problem - change the page, you halt the execution (I think). CSV should just be raw data - how big are these files that they cause problems?

You could always use an Ajax uploader. I often use this one: http://www.plupload.com/

0

Well my problem is not just uploading the file to the webserver through a ftp client.
I have written a script that checks the credentials of a file and then uploads it to the server. As soon as the file is uploaded another script(extraction.php) starts reading the file and updates the database as per the user's choice. So as this script would take some time and the user must not be kept waiting for the script to complete i have to execute the extraction script in the background. I cannot use exec funtion of php as my application may be hosted on windows server as well so i needed an OS independent solution.

Anyways I have found the solution. I'm now doing it using curl

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.