Executing external program without getting output

This is a discussion on Executing external program without getting output within the PHP Language forums, part of the PHP Programming Forums category; Is it possible to execute programs in a PHP script without waiting for the output and successfully ending the PHP ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-28-2007
qwertycat@googlemail.com
 
Posts: n/a
Default Executing external program without getting output

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?

Reply With Quote
  #2 (permalink)  
Old 09-28-2007
RageARC
 
Posts: n/a
Default Re: Executing external program without getting output

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 :).

Reply With Quote
  #3 (permalink)  
Old 09-29-2007
Dikkie Dik
 
Posts: n/a
Default Re: Executing external program without getting output

qwertycat@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.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:06 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0