I'm trying to test out the powers of exec(). Later on I plan to send out mails to more than 500 people (not spam) with exec() (as was shown in another thread).
Right now, I'm just doing something simple with it.
<?php
exec("C:\php\php.exe C:\b.php > C:\stuff.txt 2>&1");
?>
b.php just does 100 queries to mysql. But b.php isn't the problem. When I read c:\stuff.txt for errors, I always see this:
The process cannot access the file because it is being used by another process.
X-Powered-By: PHP/4.2.2
Content-type: text/html
Help? What am I doing wrong here?
Thanks