Trying to use exec functions to execute and stop program

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Krishma
Forum Newbie
Posts: 6
Joined: Tue Feb 07, 2006 10:30 am
Location: Montreal

Trying to use exec functions to execute and stop program

Post by Krishma »

Hi:

1. I am executing exec function to start a program(Start ABC)
2. writing its output to a file(using batch file to do this)
3. Displaying that file(TEXT)
4. Stopping program (KILL)

My problem is I want to delete TEXT file. As I have KILLED the process it is not allowing to do this. If some one have any idea to save file before I kill it please tell. Or if some other solution please free to write your help.

Thanks,
Krishma
Post Reply