Calling commands from php - xhost access by www-data?



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

.



Relevant Pages

  • Re: organizing code and folder structure
    ... The League tables builds a HREF URL in php, ... show the record ids in the database for the player and the event. ... Player and that Venue. ... want to have one singel code base meaning that I don't want to copy my ...
    (comp.lang.php)
  • Re: including hyperlinks
    ... >issue will be synchronizing the .php page with the audio. ... >> Including this in your ASX file is enough to display a web page in the ... >> brokwn HTML) cause you're now hosting it in the player itself. ... >>>me to focus on the video pane of the WMP. ...
    (microsoft.public.windowsmedia)
  • Re: fpassthru and mp3 player
    ... >php file which dumps with fpassthru and appropiate headers an mp3 file. ... How is the player reading the file? ...
    (comp.lang.php)
  • Re: [PHP] PHP as a strategic BUSINESS language
    ... IBM, Oracle and others seem to be less sure about whether php will ... > be a major player in the business solutions arena (often referred to as ...
    (php.general)
  • Re: podcast player
    ... integrate an external player or is there a possibility to apply the player ... installed on the client machine for this job? ... If you want to play mp3s on the server, this is the right way to go. ... And BTW - this has nothing to do with PHP. ...
    (comp.lang.php)