Re: I cant run an external command

From: Date: Tue, 03 Dec 2002 11:18:45 +0000
Subject: Re: I cant run an external command
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-17239@lists.php.net to get a copy of this message
Exactly what is the error ? What OS are you running ? There is a difference between using the character ' and the character ", you know ? For instance, the script $filename="test.txt"; $f = shell_exec("notepad.exe $filename"); will open TEST.TXT, but is younger brother $filename="test.txt"; $f = shell_exec('notepad.exe $filename'); will open the file $FILENAME.TXT and that could be a problem. Luis ----- Original Message ----- From: "s" <test@edc.uoc.gr> To: <php-windows@lists.php.net> Sent: Tuesday, December 03, 2002 10:29 AM Subject: [PHP-WIN] I cant run an external command > Hi, > > > I wrote a form for add user on email server > but the line > $f =shell_exec( d:\imail\adduser.exe -u $userid -p > $password2); > return alway error > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.windows (#17239) next »