[PHP] Re: Exec() wont run program

2003-10-13 Thread steve
Curt Zirzow wrote: What is gedit? it looks like the gnu text editor command. most X applications wont run from the webserver in most cases. Curt, I'm trying to understand why most X applications wont run from the webserver in most cases. If nothing else, you should at least be able to run a sh

Re: [PHP] Re: Exec() wont run program

2003-10-10 Thread Mohamed Lrhazi
Where are you expecting gedit to appear? try with -display argument Also, try other commands, such as ls first. Mohamed~ On Fri, 2003-10-10 at 17:18, steve wrote: > Curt Zirzow wrote: > > What is gedit? it looks like the gnu text editor command. most X > > applications > > wont run from the web

[PHP] Re: Exec() wont run program

2003-10-10 Thread steve
Curt Zirzow wrote: What is gedit? it looks like the gnu text editor command. most X applications wont run from the webserver in most cases. gedit is a simple text editor - I think it stands for Gnome Edit echo shell_exec("sudo gedit"); might give some answers, Curt. Tried echo shell_exec("sudo

[PHP] Re: Exec() wont run program

2003-10-10 Thread Curt Zirzow
On Fri, 10 Oct 2003 13:24:49 -0700, Steve <[EMAIL PROTECTED]> wrote: I want to start up a program through a php page. For example, gedit. I found that the user is apache by running this: - passthru('whoami'); since apache might not have access to run a certain command, I'll use sudo. I