#22662 [Opn]: shell_exec not working on windows XP
ID: 22662 User updated by: pjaleysen at hotmail dot com Reported By: pjaleysen at hotmail dot com Status: Open Bug Type: Program Execution Operating System: Windows XP PHP Version: 4.3.0 New Comment: Executing Windows-based applications work alright, but not the ones running in DOS. e.g. I am using winzip now instead of pkzip.exe for dos. Because I have to use windows application, it will mke the php code less portable, since I have to use installed software Previous Comments: [2003-03-13 06:33:40] pjaleysen at hotmail dot com Nope, paths, all of that excluded.I tried to put some details below, comming from http://forums.devshed.com/t55038/s.html (which also deals with the various path issues. Many others also had a look at it). At the very end of the forum there is an assumption that it is a WinXP problem, since win2000 works fine. [2003-03-13 06:25:57] [EMAIL PROTECTED] %PATH% issue? (blind guess) [2003-03-13 03:01:51] pjaleysen at hotmail dot com HI, I tried it out with PHP Version 4.3.2-RC but the problem remains; native MS-DOS commands work fine, other DOS-applications do not respond. kind regards Patrick [2003-03-12 17:05:51] [EMAIL PROTECTED] Yes, but the snapshot is 4.3.2-dev so try it out. We're about to release 4.3.2 soon. [2003-03-12 17:04:09] pjaleysen at hotmail dot com I have the same problem with php4.3 (at home) The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/22662 -- Edit this bug report at http://bugs.php.net/?id=22662&edit=1
#22662 [Opn]: shell_exec not working on windows XP
ID: 22662 User updated by: pjaleysen at hotmail dot com Reported By: pjaleysen at hotmail dot com Status: Open Bug Type: Program Execution Operating System: Windows XP PHP Version: 4.3.0 New Comment: Nope, paths, all of that excluded.I tried to put some details below, comming from http://forums.devshed.com/t55038/s.html (which also deals with the various path issues. Many others also had a look at it). At the very end of the forum there is an assumption that it is a WinXP problem, since win2000 works fine. Previous Comments: [2003-03-13 06:25:57] [EMAIL PROTECTED] %PATH% issue? (blind guess) [2003-03-13 03:01:51] pjaleysen at hotmail dot com HI, I tried it out with PHP Version 4.3.2-RC but the problem remains; native MS-DOS commands work fine, other DOS-applications do not respond. kind regards Patrick [2003-03-12 17:05:51] [EMAIL PROTECTED] Yes, but the snapshot is 4.3.2-dev so try it out. We're about to release 4.3.2 soon. [2003-03-12 17:04:09] pjaleysen at hotmail dot com I have the same problem with php4.3 (at home) [2003-03-12 17:01:50] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip 4.2.3 is way too old. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/22662 -- Edit this bug report at http://bugs.php.net/?id=22662&edit=1
#22662 [Fbk->Opn]: shell_exec not working on windows XP
ID: 22662 User updated by: pjaleysen at hotmail dot com Reported By: pjaleysen at hotmail dot com -Status: Feedback +Status: Open Bug Type: Program Execution Operating System: Windows XP PHP Version: 4.3.0 New Comment: HI, I tried it out with PHP Version 4.3.2-RC but the problem remains; native MS-DOS commands work fine, other DOS-applications do not respond. kind regards Patrick Previous Comments: [2003-03-12 17:05:51] [EMAIL PROTECTED] Yes, but the snapshot is 4.3.2-dev so try it out. We're about to release 4.3.2 soon. [2003-03-12 17:04:09] pjaleysen at hotmail dot com I have the same problem with php4.3 (at home) [2003-03-12 17:01:50] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip 4.2.3 is way too old. [2003-03-12 11:58:58] pjaleysen at hotmail dot com like I said, the native Windows commands work correctly. I tried putting cmd before a command, but invain. This is a brief summary of the forum thread, found at http://forums.devshed.com/t55038/s.html): //--- I am trying to use pkzip to compress documents. I am running a windows PC, so I am trying to execute a DOS command. I have so far: It doesnt work //- shouldn't have to as long as cmd.exe is in your path. can't believe its not really. maybe try a little test like this and see what you get back, then you'll know if its a path problem. //-- The ping works ok! I can do the standard commands alright. I tried: 1)using absolute directories (like above) 2) changing path=, to include the pkzip file (A dos version of pkzip) 3) changing to the 'long' directory notation (e.g progra~1 => program files) //- Executing commands in the shell from a PHP script only works when the program you are trying to execute resides in your system directory (windows 2000: c:\winnt\system32). //- I might have a clue!?!? e.g. I have a batchfile saying: "echo this batchfile works" running this with: echoos 'echo this batchfile works' Shouldnt the 'echo' NOT be there in the echo $test? It's like it is just reading the line, instead of executing it... // [2003-03-12 11:47:40] [EMAIL PROTECTED] Sorry, that should be shell_exec('cmd ver'); ~ Andrew Heebner The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/22662 -- Edit this bug report at http://bugs.php.net/?id=22662&edit=1
#22662 [Fbk->Opn]: shell_exec not working on windows XP
ID: 22662 User updated by: pjaleysen at hotmail dot com Reported By: pjaleysen at hotmail dot com -Status: Feedback +Status: Open Bug Type: Program Execution Operating System: Windows XP PHP Version: 4.2.3 New Comment: I have the same problem with php4.3 (at home) Previous Comments: [2003-03-12 17:01:50] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip 4.2.3 is way too old. [2003-03-12 11:58:58] pjaleysen at hotmail dot com like I said, the native Windows commands work correctly. I tried putting cmd before a command, but invain. This is a brief summary of the forum thread, found at http://forums.devshed.com/t55038/s.html): //--- I am trying to use pkzip to compress documents. I am running a windows PC, so I am trying to execute a DOS command. I have so far: It doesnt work //- shouldn't have to as long as cmd.exe is in your path. can't believe its not really. maybe try a little test like this and see what you get back, then you'll know if its a path problem. //-- The ping works ok! I can do the standard commands alright. I tried: 1)using absolute directories (like above) 2) changing path=, to include the pkzip file (A dos version of pkzip) 3) changing to the 'long' directory notation (e.g progra~1 => program files) //- Executing commands in the shell from a PHP script only works when the program you are trying to execute resides in your system directory (windows 2000: c:\winnt\system32). //- I might have a clue!?!? e.g. I have a batchfile saying: "echo this batchfile works" running this with: echoos 'echo this batchfile works' Shouldnt the 'echo' NOT be there in the echo $test? It's like it is just reading the line, instead of executing it... // [2003-03-12 11:47:40] [EMAIL PROTECTED] Sorry, that should be shell_exec('cmd ver'); ~ Andrew Heebner [2003-03-12 11:45:52] [EMAIL PROTECTED] 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
#22662 [Opn]: shell_exec not working on windows XP
ID: 22662 User updated by: pjaleysen at hotmail dot com Reported By: pjaleysen at hotmail dot com Status: Open Bug Type: Output Control Operating System: Windows XP PHP Version: 4.2.3 New Comment: like I said, the native Windows commands work correctly. I tried putting cmd before a command, but invain. This is a brief summary of the forum thread, found at http://forums.devshed.com/t55038/s.html): //--- I am trying to use pkzip to compress documents. I am running a windows PC, so I am trying to execute a DOS command. I have so far: It doesnt work //- shouldn't have to as long as cmd.exe is in your path. can't believe its not really. maybe try a little test like this and see what you get back, then you'll know if its a path problem. //-- The ping works ok! I can do the standard commands alright. I tried: 1)using absolute directories (like above) 2) changing path=, to include the pkzip file (A dos version of pkzip) 3) changing to the 'long' directory notation (e.g progra~1 => program files) //- Executing commands in the shell from a PHP script only works when the program you are trying to execute resides in your system directory (windows 2000: c:\winnt\system32). //- I might have a clue!?!? e.g. I have a batchfile saying: "echo this batchfile works" running this with: echoos 'echo this batchfile works' Shouldnt the 'echo' NOT be there in the echo $test? It's like it is just reading the line, instead of executing it... // Previous Comments: [2003-03-12 11:47:40] [EMAIL PROTECTED] Sorry, that should be shell_exec('cmd ver'); ~ Andrew Heebner [2003-03-12 11:45:52] [EMAIL PROTECTED] 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
#22662 [NEW]: shell_exec not working on windows XP
From: pjaleysen at hotmail dot com Operating system: Windows XP PHP version: 4.2.3 PHP Bug Type: Output Control Bug description: shell_exec not working on windows XP 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 bug report at http://bugs.php.net/?id=22662&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22662&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22662&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22662&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22662&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22662&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=22662&r=support Expected behavior: http://bugs.php.net/fix.php?id=22662&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=22662&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=22662&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22662&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22662&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22662&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22662&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=22662&r=gnused