opening and executing an xwindows app in php

resglowing

Registered
I want to execute an xwindows app using php. The problem is that www doesn't seem to have access to xwindows becuase I get an error like

Darwin Version: 6.8
something is really screwed up because HOME is not set. Thus no user-defined resources can be set
no ./.consedrc file so no project-specific resources--that's ok
Error: Can't open display:

in /var/log/httpd/error_log

I create an a home directory for www and tried setting DISPLAY. But I can't even get xeyes to open (I have the xwindows server running).

The php command I'm using is
exec("xeyes"); for instance
 
Try exec("/full/path/to/xeyes -display localhost:0.0"); Also make sure that in an xterm before you try to run this, you run 'xhost +' to enable access to any user/host to display to the X server that is running.

Brian
 
Back
Top