note 35483 added to language.operators.execution

From: Date: Tue, 02 Sep 2003 18:24:34 +0000
Subject: note 35483 added to language.operators.execution
Groups: php.notes 
Request: Send a blank email to php-notes+get-55488@lists.php.net to get a copy of this message
Windows 2000, IIS 5 It is sort of tricky to pass a filename as a command-line parameter, but it will work if you follow two simple rules. 1. Escape backslashes of the the filename but not the executable, as in $output = C:\executable C:\\directory\\filename; 2. You may enclose either the executable or the filename in quotes, but not both. OK: $output = C:\executable "C:\\directory\\filename"; NOT OK: $output = "C:\executable" "C:\\directory\\filename"; ---- Manual Page -- http://www.php.net/manual/en/language.operators.execution.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35483 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35483&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35483&report=yes

« previous php.notes (#55488) next »