Search found 1 match
- Mon Aug 04, 2008 10:41 pm
- Forum: PHP - Code
- Topic: exec() and error handling
- Replies: 2
- Views: 208
exec() and error handling
OK -- I'm a PHP newbie and stumped by exec() error handling. The short version is that I try to run: exec("cp testA.dat testB.dat") or die ("Bad cp."); and what I get is both the copied file from exec AND the die message (and halted PHP). --------- I'm running PHP 5.2.6 under XAM...