I have a script that broke after upgrading php 4.3.4 to 4.3.7 Did the exec function change between php 4.3.4 and 4.3.7? With 4.3.4 exec seems to return output, with 4.3.7 exec does not seem to return output.
For example, I ran a batch file date.bat from the php command line interface as shown below... D:\PHP4\php-4.3.4-Win32\cli> php -r print_r(exec('date.bat')); Thu 07/15/2004 D:\PHP4\php-4.3.4-Win32\cli> D:\PHP4\php-4.3.7-Win32\cli> php -r print_r(exec('date.bat')); D:\PHP4\php-4.3.7-Win32\cli> php 4.3.4 returns the date as expected. php 4.3.7 doesn't return anything. date.bat contains one command as shown below... F:\batfiles\batch>type date.bat date /t I checked the latest documentation for exec to see if any changes were noted but only found one additional warning... Warning With safe mode enabled, all words following the initial command string are treated as a single argument. Thus, echo y | echo x becomes echo "y | echo x". Any ideas what has happened? Thanks, Daniel -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php