By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,885 Members | 1,474 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,885 IT Pros & Developers. It's quick & easy.

Executing external program without getting output

P: n/a
Is it possible to execute programs in a PHP script without waiting for
the output and successfully ending the PHP script without ending the
external program too?

Sep 28 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 28 Sep, 22:36, qwerty...@googlemail.com wrote:
Is it possible to execute programs in a PHP script without waiting for
the output and successfully ending the PHP script without ending the
external program too?
Do this:

Create a program that executes the program you want to execute.

Use PHP to execute the first program.

The first program will execute the second one and close itself.

The second one will keep running, but PHP won't know ;) and PHP
ignores that fact and so it finishes and the second program will still
be running :).

Sep 28 '07 #2

P: n/a
qw*******@googlemail.com wrote:
Is it possible to execute programs in a PHP script without waiting for
the output and successfully ending the PHP script without ending the
external program too?
Let me guess. If you are not interested in the results, you do not need
them right away. Then your program probably does not have to start right
away either. This situation is ideal for a CRON job. CRON jobs are often
used on web servers for clean-up routines, sending reminder e-mails, etc.
Sep 28 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.