note 36444 added to ref.exec

From: Date: Thu, 09 Oct 2003 16:51:48 +0000
Subject: note 36444 added to ref.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-58149@lists.php.net to get a copy of this message
Please note that the following will not work under Windows 2000 using Apache 2 and php 4.2.3: exec("\"c:\\Program Files\\PKWARE\\PKZIPC\\pkzipc\" -add -attr=all -dir=relative -max \"$outFile\" \"e:\\my folder\\*.*\"",$output,$error); It looks like you have to put the command OR the parameters between quotes if you want to use long file names but not both at the same time. For example, these work: exec("c:\\Progra~1\\PKWARE\\PKZIPC\\pkzipc -add -attr=all -dir=relative -max \"$outFile\" \"e:\\my folder\\*.*\"",$output,$error); exec("\"c:\\Program Files\\PKWARE\\PKZIPC\\pkzipc\"",$output,$error); I wonder if there's something I don't get or if it's a bug. Pasting the first attempt right at the command prompt works like a charm. Anyway, hope it saves someone some precious time. ---- Manual Page -- http://www.php.net/manual/en/ref.exec.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36444 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36444&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36444&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#58149) next »