note 35402 added to ref.exec

From: Date: Fri, 29 Aug 2003 22:04:27 +0000
Subject: note 35402 added to ref.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-55322@lists.php.net to get a copy of this message
Windows 2000 The only way I found to get a command followed by a filename to execute was with k dot mitz's method: $cmd = "\"executable\" args file-name"; Example: $cmd = "\"C:\program files\winzip\wzunzip.exe\" -c C:\\temp\\uploaded_file.zip"; exec($cmd,$output,$rv); The point to note is that this will not work: $output = command file-name; So for this case, use exec as shown. ---- Manual Page -- http://www.php.net/manual/en/ref.exec.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35402 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35402&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35402&report=yes

« previous php.notes (#55322) next »