Re: [PHP] Using Exec Function

2005-06-17 Thread Davide Pasqualini
I just need to understand how I can run Hello.exe

Thanks for your help

Davide


Richard Lynch [EMAIL PROTECTED] ha scritto nel messaggio
news:[EMAIL PROTECTED]
 On Thu, June 16, 2005 6:23 am, Davide Pasqualini said:
  I'm Windows XP Professional SP1, Apache 2.0.50 and PHP 5.0.4
  I'm trying to run a Win32 application using  Exec() or Shell_Exec() but
it
  doesn't work.
 
  In PHP.INI  safe_mode is Off
  Apache is running under SYSTEM user
 
  I also tryed to use backtick operator as shown in
  http://php.net/manual/en/language.operators.execution.php
  but with no success, in the browser I get something like this:
 
  C:\Programmi\Apache Group\Apache2\htdocs\proveC:\HELLO.EXE
 
  php code
   ?php
   $test = `c:\mybat.bat`;
   echo pre$test/pre;
   ?
 
  mybat.bat
   C:\HELLO.EXE
 
  I'm still learning to use PHP, so this obviously beyond me.

 What do you expect hello.exe to do?...

 Cuz it looks like it's printing out *something* even if it's not what you
 want it to print out.

 C:\Programmi\Apache Group\Apache2\htdocs\prove is the output of
 hello.exe far as I can see.

 -- 
 Like Music?
 http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Using Exec Function

2005-06-16 Thread Davide Pasqualini
I'm Windows XP Professional SP1, Apache 2.0.50 and PHP 5.0.4
I'm trying to run a Win32 application using  Exec() or Shell_Exec() but it
doesn't work.

In PHP.INI  safe_mode is Off
Apache is running under SYSTEM user

I also tryed to use backtick operator as shown in
http://php.net/manual/en/language.operators.execution.php
but with no success, in the browser I get something like this:

C:\Programmi\Apache Group\Apache2\htdocs\proveC:\HELLO.EXE

php code
 ?php
 $test = `c:\mybat.bat`;
 echo pre$test/pre;
 ?

mybat.bat
 C:\HELLO.EXE

I'm still learning to use PHP, so this obviously beyond me.

Davide

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Using Exec Function

2005-06-16 Thread Richard Lynch
On Thu, June 16, 2005 6:23 am, Davide Pasqualini said:
 I'm Windows XP Professional SP1, Apache 2.0.50 and PHP 5.0.4
 I'm trying to run a Win32 application using  Exec() or Shell_Exec() but it
 doesn't work.

 In PHP.INI  safe_mode is Off
 Apache is running under SYSTEM user

 I also tryed to use backtick operator as shown in
 http://php.net/manual/en/language.operators.execution.php
 but with no success, in the browser I get something like this:

 C:\Programmi\Apache Group\Apache2\htdocs\proveC:\HELLO.EXE

 php code
  ?php
  $test = `c:\mybat.bat`;
  echo pre$test/pre;
  ?

 mybat.bat
  C:\HELLO.EXE

 I'm still learning to use PHP, so this obviously beyond me.

What do you expect hello.exe to do?...

Cuz it looks like it's printing out *something* even if it's not what you
want it to print out.

C:\Programmi\Apache Group\Apache2\htdocs\prove is the output of
hello.exe far as I can see.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php