On Sat, Feb 6, 2010 at 11:13 AM, Tom Wright <t...@tdwright.co.uk> wrote:
> David: I had imagined something like that, but wasn't sure if removing
> the file would "interrupt" a continuous input (i.e. a harbor stream).

Good point. Actually, you should set track_sensitive=false for that,
as in Romain's detailed example.

I'm curious how well that solution works. You have to realize that
(with a track insensitive switch) the condition is checked several
times per second (for each frame being produced), so it's a little
intensive. Checking a reference (Romain's solution) is probably
lighter than checking the existence of a file, which might still be
light enough...

> I think on reflection that the file method will suit me better.
> Primarily because I can do file operations natively in PHP rather than
> using exec(). I'm always nervous about using exec, so this is a
> convenient way for me to bypass it.

Also note that you can probably directly use telnet from PHP.

Have fun,
-- 
David

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to