Calling commands from php - xhost access by www-data?
- From: "elentirmo .a.t. gmail..dot..com" <elentirmo@xxxxxxxxx>
- Date: 12 Dec 2005 09:45:15 -0800
Hi
I have a PHP page on Ubunutu 5.10 and I want it to call the totem DVD
player for me like this:
/usr/bin/totem --fullscreen /dev/dvd/MOVIE
This works fine from the shell
>>From PHP I try to call it like:
$command=@exec("/usr/bin/totem --fullscreen /dev/dvd/MOVIE");
The apache error log says:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(totem:8226): Gtk-WARNING **: cannot open display:
So I guess I need to allow www-data to open a display - how do I go
about setting that up?
thanks in advance
pr0fess0r
.
- Follow-Ups:
- Re: Calling commands from php - xhost access by www-data?
- From: J.O. Aho
- Re: Calling commands from php - xhost access by www-data?
- Prev by Date: Re: X screen blanking
- Next by Date: Re: Calling commands from php - xhost access by www-data?
- Previous by thread: Re: X screen blanking
- Next by thread: Re: Calling commands from php - xhost access by www-data?
- Index(es):
Relevant Pages
|
|