You are here: Re: Launch recording from PHP « PHP Programming Language « IT news, forums, messages
Re: Launch recording from PHP

Posted by Dikkie Dik on 10/18/05 20:29

Can't you use some in-between storage?
Like: the webpage puts a record in the database,
Another process regularly checks for new entries in the database and
acts if it finds a new one.
Using this "token passing", the web process needs no access except to
the database and the tv "listener" needs no web access.

Best regards

Jussi Rasku wrote:
> Hello,
>
> I'm working on a small web-script that would allow me to remotely setup
> recordings to my tv-tuner (on my linux box). The idea is simple, but I'm
> unsure how to accomplish it.
>
> The idea: Using PHP generated www-page user could set mencoder to start
> recording at some specified time. The command is put to the crontab
> using linux "at" command.
>
> Problem is that I don't think it is an good idea to grant www-data user
> (that runs apache/php process) to tinker with audio and video hardware.
> Even worse idea is to grant www-user rights to use "at" command.
>
> I use mysql database to store some recording information and thus I
> could use mysql TRIGGER-functionality to put the recording command to
> crontab, however at that case I should give mysql user video and audio
> priviledges. Again - not so good.
>
> Can anybody give an good advice how to do this wihtout dangering system
> security?
>
> yours,
> Jussi Rasku

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация