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

asp.net - Change the driver in the connection string to a data source in VB.Net -

Getting started consuming web services in a Ruby on Rails 3 application -

objective c - iPhone and it's wireless area -