Hi all,
i am new in php. i have a doubt regarding the file uploading.
What my requirement is -- process the file upload as a background process using the shell commands like system() or exec() .How can we do this? From the site --php.net -- i got the following code
function execInBackground($cmd) {
if (substr(php_uname(), 0, 7) == "Windows"){
pclose(popen("start /B ". $cmd, "r")); }
else {
exec($cmd . " > /dev/null &"); }
but what will be this '$cmd' for file upload? or is there any other method for uploading the file as background process in php???
thank you so much in advance...