Re: Weird behavior of exec()
| From: | Leonardo | Date: | Fri, 16 Jul 2010 15:42:41 +0000 |
| Subject: | Re: Weird behavior of exec() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306947@lists.php.net to get a copy of this message | ||
Em 16/07/2010 09:09, Richard Quadling escreveu:
I'm on Windows XP SP3 and using PHP 5.3.3RC3 (cli) (built: Jul 15 2010 02:00:11) Copyright (c) 1997-2010 The PHP Group All seems to work as expected. <?php // TestA.php echo ' File A (1) '; exec('C:\\php5\\php.exe -f Z:\\TestB.php> Z:\\output.txt'); echo ' File A (2) '; ?> <?php // TestB.php echo 'File B'; ?> And because of my setup matching the docs at [1], I can actually use ... <?php echo ' File A (1) '; exec('TestB> output.txt'); echo ' File A (2) '; ?> as long as TestA.php and TestB.php are in the same directory. So, initially, this looks like a non win32 issue (windows works - see !!!) Regards, Richard Quadling. [1] http://docs.php.net/manual/en/install.windows.commandline.phpThanks for testing the code. I got it working now, as explained in my reply to Bob's post.