note 25231 added to ref.exec

From: Date: Sun, 15 Sep 2002 19:07:16 +0000
Subject: note 25231 added to ref.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-36708@lists.php.net to get a copy of this message
Newbie note: The only syntax I found to work for the command portion of an an exec() call on a Win2K devel platform is: $cmd = "\"path-to-exe\" args file-name"; where 'path-to-exe' has escaped double quotes, args are in the standard format, and 'file-name' has any backslashes escaped. Example: $cmd = "\"C:\program files\winzip\wzunzip.exe\" -c C:\\temp\\uploaded_file.zip"; exec($cmd,$output,$rv); Note that the backslashes are escaped in the uploaded_file name, but not in the path to call the Winzip executable. Go figure! -- http://www.php.net/manual/en/ref.exec.php http://master.php.net/manage/user-notes.php?action=edit+25231 http://master.php.net/manage/user-notes.php?action=delete+25231 http://master.php.net/manage/user-notes.php?action=reject+25231

« previous php.notes (#36708) next »