php - Uploading a file through exec, hanging script -


In essence, I'm using exec () to run WinSCP, which is holding the script to keep the file as long as possible. Uploaded. Is it anyway to do so that the script continues, and the upload takes place in the background?

Running PHP 5.3.1 on Win7.

"post-text" itemprop = "text">
  $ pipe = popan ("/ bin / bash. / Mon_should_script. Sh argument 1", "r");  

Works under Linux and Windows.

(Do not just close the pipe and do not try to read it)

Your PHP script will continue to run, while the process created by Popin runs in the background. When your script file ends or calls to die, then it will wait for the pipe to stop before the second process ends and leave it completely.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -