#22662 [Opn]: shell_exec not working on windows XP

From: Date: Wed, 12 Mar 2003 17:47:40 +0000
Subject: #22662 [Opn]: shell_exec not working on windows XP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-35446@lists.php.net to get a copy of this message
ID: 22662 Updated by: andrew@php.net Reported By: pjaleysen at hotmail dot com Status: Open Bug Type: Output Control Operating System: Windows XP PHP Version: 4.2.3 New Comment: Sorry, that should be shell_exec('cmd ver'); ~ Andrew Heebner Previous Comments: ------------------------------------------------------------------------ [2003-03-12 11:45:52] andrew@php.net How are you passing your params to shell_exec() ? I know from personal experience, that shell_exec() requires me to load command.com to the interpreter, such as: print shell_exec('cmd version'); This *should* print out your windows version... ~ Andrew Heebner ------------------------------------------------------------------------ [2003-03-12 11:33:24] pjaleysen at hotmail dot com Hi, shell_exec(),as well as exec(),system(), can only handle 'native' DOS applications like ping,copy,attrib etc. either directly as a command, or though a *.bat file. Executing other (DOS) applications like pkzip (for DOS) or (rar for dos) don't seem to work. There is a thread of this issue at www.devshed.com (http://forums.devshed.com/t55038/s.html) I am using: -Windows XP -Apache 1.3.27 -PHP4.3 All with the default configurations. Kind regards Patrick ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22662&edit=1

« previous php.bugs (#35446) next »