Re: [PHP] Not able to execute Linux binary

2003-12-07 Thread Jerry M. Howell II
On Mon, Dec 08, 2003 at 01:28:11PM +0800, Jason Wong wrote: > On Monday 08 December 2003 12:56, Karam Chand wrote: > > I think there is some problem with the permission. > > Even if I execute a command like - > > > > echo ( "start" ); > > exec ( "pwd" ); > > echo ( "end" ); > > > > the output is -

Re: [PHP] Not able to execute Linux binary

2003-12-07 Thread Jason Wong
On Monday 08 December 2003 12:56, Karam Chand wrote: > I think there is some problem with the permission. > Even if I execute a command like - > > echo ( "start" ); > exec ( "pwd" ); > echo ( "end" ); > > the output is - startend > > shouldnt be pwd showing the present working directory > to me. Y

Re: [PHP] Not able to execute Linux binary

2003-12-07 Thread Karam Chand
Hello I think there is some problem with the permission. Even if I execute a command like - echo ( "start" ); exec ( "pwd" ); echo ( "end" ); the output is - startend shouldnt be pwd showing the present working directory to me. Karam --- Jason Wong <[EMAIL PROTECTED]> wrote: > On Saturday 06 D

Re: [PHP] Not able to execute Linux binary

2003-12-06 Thread Jason Wong
On Saturday 06 December 2003 12:56, Karam Chand wrote: > looking at manuals and help and some help from you. i > wrote the attached code- > > error_reporting (E_ALL); > ini_set('display_errors', 1); > > $result = `./myapp`; > print_r ( $result ); > > echo ( "2" ); > > exec("./myapp",$r

Re: [PHP] Not able to execute Linux binary

2003-12-06 Thread Mike
have you tried using the full path to the executable (eg /usr/bin/myapp rather than ./myapp)? Mike On Sat, 2003-12-06 at 04:56, Karam Chand wrote: > Hello > > looking at manuals and help and some help from you. i > wrote the attached code- > > error_reporting (E_ALL); > ini_set('display_err

Re: [PHP] Not able to execute Linux binary

2003-12-05 Thread Karam Chand
Hello looking at manuals and help and some help from you. i wrote the attached code- error_reporting (E_ALL); ini_set('display_errors', 1); $result = `./myapp`; print_r ( $result ); echo ( "2" ); exec("./myapp",$result); print_r($result); It is returning output 2Array ( ) whi

Re: [PHP] Not able to execute Linux binary

2003-12-05 Thread Jason Wong
On Saturday 06 December 2003 02:44, Karam Chand wrote: > The output is > > StartEnd Good, that shows your PHP program is being executed. > I am sure that the linux binary is ok. coz if in the > sheel you just do > > ./myapp > > it outputs > > error > > seems that the binary is not getting execut

Re: [PHP] Not able to execute Linux binary

2003-12-05 Thread Karam Chand
Hello The output is StartEnd I am sure that the linux binary is ok. coz if in the sheel you just do ./myapp it outputs error seems that the binary is not getting executred. I think there is some permission info. if i do phpinfo() i get the following output for safe stuff - safe_mode Off