Re: [PHP-WIN] @EXEC command not work :(

2010-05-25 Thread Sascha Meyer
Hello Stephane, Hi Niel, > > ... > > but if we move the PHP script from \\xxx.xxx.xxx.xxx\scriptdir\ > > to c:\scriptdir\ then it's work !! > ... > Is this operating in a CLI or web-server environment? If it is > web-server then it is probably a permissions issue. By default > Apache/PHP do NOT ha

Re: [PHP-WIN] @EXEC command not work :(

2010-05-25 Thread Richard Quadling
On 24 May 2010 19:35, loki wrote: > Hello, > > PHP is installed in c:\program files\php > the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\ > in the PHP script, we try to launch the command @exec(...) with a executable > located in c:\program files\ourexecutable\ > > it's not work :

Re: [PHP-WIN] @EXEC command not work :(

2010-05-25 Thread loki
I have a begin of explanation When PHP is run as CGI it's work but with this header message : '\\xxx.xxx.xxx.xxx\scriptdir' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. Status: 200 OK X-Powered-By: PHP/5.2.8 Cont

Re: [PHP-WIN] @EXEC command not work :(

2010-05-24 Thread Niel Archer
> Hello, > > PHP is installed in c:\program files\php > the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\ > in the PHP script, we try to launch the command @exec(...) with a > executable located in c:\program files\ourexecutable\ > > it's not work :( > > but if we move the PHP sc

Re: [PHP-WIN] exec() problem

2005-12-22 Thread Fábio Ottolini
, Fábio Ottolini - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; Sent: Wednesday, December 21, 2005 1:30 PM Subject: RE: [PHP-WIN] exec() problem [snip] The same script works fine in another win2k box running PHP version 5. St

RE: [PHP-WIN] exec() problem

2005-12-21 Thread Jay Blanchard
[snip] The same script works fine in another win2k box running PHP version 5. Strange is that if I add print $result; right after exec ( $command, $result ); nothing is printed. When the script runs on the machine that works it prints Array obviously. So, my guess is that $command is never being ex

Re: [PHP-WIN] exec() problem

2005-12-21 Thread trystano
gt; To: php-windows@lists.php.net Sent: Wed, 21 Dec 2005 13:03:58 +0100 Subject: Re: [PHP-WIN] exec() problem Fábio Ottolini wrote: > To clarify it a little bit more, I have changed the code a bit: > > $command = "nslookup -type=mx $domain 2>&1"; > > exec ( $command, $r

Re: [PHP-WIN] exec() problem

2005-12-21 Thread El Bekko
Fábio Ottolini wrote: To clarify it a little bit more, I have changed the code a bit: $command = "nslookup -type=mx $domain 2>&1"; exec ( $command, $result ); print_r($result); And the result on the browser is: Array ( [0] => Access is denied. ) Any clues? '>'-- Mensagem Original -- '>

RE: [PHP-WIN] exec() problem

2005-12-20 Thread Fábio Ottolini
To clarify it a little bit more, I have changed the code a bit: $command = "nslookup -type=mx $domain 2>&1"; exec ( $command, $result ); print_r($result); And the result on the browser is: Array ( [0] => Access is denied. ) Any clues? '>'-- Mensagem Original -- '>'Date: Tue, 20 Dec 2005 10

Re: [PHP-WIN] Exec problem (using Winzip - command line)

2005-11-16 Thread Chuck Anderson
No. Nothing in either log file. [EMAIL PROTECTED] wrote: Are you getting anything in your Apache Error/Event logs? Tryst -Original Message- From: Chuck Anderson <[EMAIL PROTECTED]> To: php-windows@lists.php.net Sent: Mon, 14 Nov 2005 16:31:57 -0700 Subject: [PHP-WIN] Exec problem (us

Re: [PHP-WIN] Exec problem (using Winzip - command line)

2005-11-16 Thread trystano
Are you getting anything in your Apache Error/Event logs? Tryst -Original Message- From: Chuck Anderson <[EMAIL PROTECTED]> To: php-windows@lists.php.net Sent: Mon, 14 Nov 2005 16:31:57 -0700 Subject: [PHP-WIN] Exec problem (using Winzip - command line) I wrote a script to backup my T

Re: [PHP-WIN] Exec

2002-07-22 Thread charlesk
The file I am trying to execute can be executed by Everyone. This command works when I specify the local server and it does not work when I specify a different server. The dnscmd.exe works for both local and remote servers when run from a command line. Charles -- Original Message

RE: [PHP-WIN] exec(), passthru()

2002-07-16 Thread Mikey
he first command cannot redirect it's output to STDOUT (i.e. the console window) > -Original Message- > From: Matt Babineau [mailto:[EMAIL PROTECTED]] > Sent: 16 July 2002 17:12 > To: [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] exec(), passthru() > > > What do

RE: [PHP-WIN] exec(), passthru()

2002-07-16 Thread Matt Babineau
:41 AM To: Matt Babineau; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] exec(), passthru() How about: passthru ("command1 > command2"); or passthru ("command1 | command2"); HTH Mikey > -Original Message- > From: Matt Babineau [mailto:[EMAIL PROTECTED]] &g

RE: [PHP-WIN] exec(), passthru()

2002-07-16 Thread Mikey
How about: passthru ("command1 > command2"); or passthru ("command1 | command2"); HTH Mikey > -Original Message- > From: Matt Babineau [mailto:[EMAIL PROTECTED]] > Sent: 16 July 2002 16:26 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] exec(), passthru() > > > I am trying to run one

Re: [PHP-WIN] Exec

2002-07-10 Thread charlesk
When I look in the task manager the php.exe is running as me. The only way that it doesnt work is when I run it from the web and try to get info off another server. Localhost works fine in all cases. When I try to get info off another server it only fails when I make the request from the web

Re: [PHP-WIN] Exec

2002-07-10 Thread Scott Carr
Sounds like a permissions problem. Everywhere else you are running as you or root. Under the Web Server, you are probably running as "Nobody". Check permissions on the file you are trying to execute. -- Scott Carr OpenOffice.org Documentation Maintainer http://documentation.openoffice.org/

Re: [PHP-WIN] Exec() again

2001-10-10 Thread CJD
exec() will execute the app as the system, not a user, so cannot interact with the desktop. One way of getting around this would be (for NT) to use the exec() command to create an AT schedule for 1 min in the future and set it to /interactive which would cause the app to load and interact with th

Re: [PHP-WIN] Exec() again

2001-10-10 Thread Ross Fleming
he page would hang? PHP waits for exec to finish first. Rerouting the output to a blank file should do the trick. Hope it helps Ross -Original Message- From: Yaroukh [mailto:[EMAIL PROTECTED]] Sent: 10 October 2001 15:55 To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Exec() again This

Re: [PHP-WIN] Exec() again

2001-10-10 Thread Yaroukh
This works: Exec("mkdir myDirectory"); ... this doesn't: Exec("C:\\Program Files\\WinAmp\\winamp.exe"); -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EM

Re: [PHP-WIN] Exec() again

2001-10-10 Thread Yaroukh
I haven't wrote I want to execute anything on user's PC. /:o) Where did you read this? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP-WIN] Exec() again

2001-10-10 Thread Ross Fleming
Again, you can't do this. You can certainly make winamp execute on the server PC. To what end you'd want to do this I don't know. What u seem to want to do is force winamp to run on a users PC whenever they visit your webpage. This may seem harmless, but this ability would be a nightmare. Give

RE: [PHP-WIN] Exec command still doesn't on Win2K and IIS

2001-06-30 Thread choiks
[EMAIL PROTECTED] (BAMHA Mostafa Ftmms) wrote in 6F80F42D4777D4119359001083FCBB9E138CF2@ISSYNTSF02:">news:6F80F42D4777D4119359001083FCBB9E138CF2@ISSYNTSF02: > The program i tested is very simple. This is the php code > echo "test ..."; > exec("dir c:\\"); > ?> > ## you can't fin

RE: [PHP-WIN] Exec command still doesn't on Win2K and IIS

2001-06-28 Thread BAMHA Mostafa Ftmms
>exec(), system(), ... work well in isapi mode in php 4.0.6. >check your code!! >then post your code!! Hi, The program i tested is very simple. This is the php code ## the execution of this script is : test ... Warning: Unable to fork [dir c:\] in c:\inetpub\wwwroot\manager_4\te

Re: [PHP-WIN] Exec command still doesn't on Win2K and IIS

2001-06-28 Thread choiks
[EMAIL PROTECTED] (BAMHA Mostafa Ftmms) wrote in 6F80F42D4777D4119359001083FCBB9E138CF0@ISSYNTSF02:">news:6F80F42D4777D4119359001083FCBB9E138CF0@ISSYNTSF02: > Hi all, > I'm using the ISAPI version of PHP-4.0.6 on Win2K but the Exec command > still doesn't > work on Win2K and IIS. > > However,

Re: [PHP-WIN] Exec command still doesn't on Win2K and IIS

2001-06-27 Thread Johan Lundqvist
Your'e correct. When using PHP as ISAPI there's still problems with program execution (exec, system et.c.) in ver. 4.0.6 CGI version still works better... /Johan BAMHA Mostafa Ftmms wrote: > > Hi all, > I'm using the ISAPI version of PHP-4.0.6 on Win2K but the Exec command still > doesn't > wor

Re: [PHP-WIN] Exec and IIS

2001-05-14 Thread Alain Samoun
Exec doesn't work in win32, wait for php4.06 where apparently it has been fixed. (See www.php4win.de for a prerelease). Alain On Mon, May 14, 2001 at 06:00:12AM -0700, Nick Howard wrote: > Hello, > > I feel like I'm beating a dead horse (I think that's > the saying), but I'm having trouble with

Re: [PHP-WIN] exec() fix

2001-05-07 Thread Daniel Beulshausen
At 22:55 07.05.2001 +0300, Matti Palosuo wrote: >I guess I'm not the only one who've had problems using external programs >in Win2k. About the unable to fork bug in the bug reporting pages: > > "fixed in cvs, wait for 4.0.6" > >To the question: Does anyone have pre-compiled binaries with this bu

Re: [PHP-WIN] Exec()

2001-04-13 Thread Helmut Himmelstoss
I think, it is a problem of my Win2k and IIS5. Wenn i use the script c:\\ping.txt' , $returnstring); ?> then I get a textfile with the right result: - Ping wird ausgefhrt fr 127.0.0.1 mit 32 Bytes Daten: Antwort von 127.0.0.1: Bytes=32 Zeit<

Re: [PHP-WIN] Exec()

2001-04-13 Thread Patrick
""Guido E. Smit"" <[EMAIL PROTECTED]> wrote in message 9b4tur$6ah$[EMAIL PROTECTED]">news:9b4tur$6ah$[EMAIL PROTECTED]... > I have the same problem, running W2K and IIS5: > print "\n"; > exec('LUII.exe rpc3.ingrammicro.com 058DY12 1', $returnstring, $returnvar); > print "Return var: ".$returnva

Re: [PHP-WIN] Exec()

2001-04-12 Thread Guido E. Smit
I have the same problem, running W2K and IIS5: print "\n"; exec('LUII.exe rpc3.ingrammicro.com 058DY12 1', $returnstring, $returnvar); print "Return var: ".$returnvar."\n"; print "Printing output ".count($returnstring)." lines:\n"; print "\n"; while (list($line, $text) = each($returnstring))

Re: [PHP-WIN] Exec()

2001-04-12 Thread Patrick
""Helmut Himmelstoss"" <[EMAIL PROTECTED]> wrote in message 9b21na$iu7$[EMAIL PROTECTED]">news:9b21na$iu7$[EMAIL PROTECTED]... > I copied the Program Ping.exe to the same directory as my script and the > User the IUSR_[Machine name] hast the permissions. > > echo""; > $dd=system("ping p

Re: [PHP-WIN] Exec()

2001-04-11 Thread Helmut Himmelstoss
I copied the Program Ping.exe to the same directory as my script and the User the IUSR_[Machine name] hast the permissions. "; $dd=system("ping ping 127.0.0.1"); echo "$dd ;;this is a system-test"; echo ""; ?> The result is the same.. no result: ;;this is a system-te

Re: [PHP-WIN] Exec()

2001-04-11 Thread Olivier Hubert
At 18:03 2001-04-11 +0200, Helmut Himmelstoss wrote: >it did'nt works. I get no result. I work in CGI Mode under WinNT and IIS5 Did you check the permissions for ping.exe? Does the IUSR_[Machine name] or whatever user executes PHP.exe have the rights to read/execute ping.exe? Very often, anonymou

Re: [PHP-WIN] Exec()

2001-04-11 Thread Helmut Himmelstoss
it did'nt works. I get no result. I work in CGI Mode under WinNT and IIS5 ""Patrick"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 9b1niq$hqa$[EMAIL PROTECTED]">news:9b1niq$hqa$[EMAIL PROTECTED]... > > ""Helmut Himmelstoss"" <[EMAIL PROTECTED]> wrote in message > 9avht3$kc3$[EMAIL PROTECTED]">news:

Re: [PHP-WIN] Exec()

2001-04-11 Thread Patrick
""Helmut Himmelstoss"" <[EMAIL PROTECTED]> wrote in message 9avht3$kc3$[EMAIL PROTECTED]">news:9avht3$kc3$[EMAIL PROTECTED]... > HI, > > system(), exec() etc. don't work properly under Windows. > they just don't hand back the output. > > Has anyone got these functions working (e.g. Ping.exe)?? >

RE: [PHP-WIN] Exec() In Windows

2001-04-05 Thread alain samoun
zugut'; '[EMAIL PROTECTED]' Subject: RE: [PHP-WIN] Exec() In Windows Hello, I went through the same problems but got some help from a coworker. Oliver was right about the user ID. what you can do is change the .exe to an ActiveX.dll COM object. Then add it to a MTS pac

RE: [PHP-WIN] Exec() In Windows

2001-04-05 Thread Dale Heil
or c++ to access Outlook. Hope this helps. -Original Message- From: zugut [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 5:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Exec() In Windows Hi, I have the same problem, I don't understand the problem. "Keit

RE: [PHP-WIN] Exec() In Windows

2001-04-04 Thread Robin Bolton
er, or gain CVS access and make the contribution yourself. > -Original Message- > From: Jason Gan [mailto:[EMAIL PROTECTED]] > Sent: April 4, 2001 7:10 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] Exec() In Windows > > > Dear Ladies and Gents, > >

RE: [PHP-WIN] Exec() In Windows

2001-04-04 Thread Jason Gan
uot;. :0) -- Jason -Original Message- From: Olivier Hubert [mailto:[EMAIL PROTECTED]] Sent: Thursday, 5 April 2001 8:06 AM To: zugut; [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Exec() In Windows Hi, You've probably already looked into this, but I just wanted to be sure: have you ch

RE: [PHP-WIN] Exec() In Windows

2001-04-04 Thread James Moore
> >Hi, > > > >I have the same problem, I don't understand the problem. > > > > > > > >"Keith Stevenson" <[EMAIL PROTECTED]> wrote in message > >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >> Hi, > >> Im having a Problem running an application from a PHP page using the > >> Exec() function (as w

Re: [PHP-WIN] Exec() In Windows

2001-04-04 Thread Olivier Hubert
Hi, You've probably already looked into this, but I just wanted to be sure: have you checked the persmissions on "Application.exe" ? I believe PHP uses IUSR_Computer (where Computer is your computer name) to exec() anything so if IUSR_Computer doesn't have the rights to read+execute the p

Re: [PHP-WIN] Exec() In Windows

2001-04-04 Thread zugut
Hi, I have the same problem, I don't understand the problem. "Keith Stevenson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > Im having a Problem running an application from a PHP page using the > Exec() function (as well as all the other program exec

RE: [PHP-WIN] exec/system/passthru ??????

2001-03-15 Thread Fernando Madruga
Is the program a simple one or does it have an elaborate look and feel? If it's a simple one, you can probably generate a file, then redirect the program's input to accept the data from that file; if it's a more elaborated program, it will probably disregard standard input, so it's a lot harder to

Re: [PHP-WIN] exec/system/passthru ??????

2001-03-15 Thread Josh Seward
MAIL PROTECTED]> Sent: Thursday, March 15, 2001 10:48 AM Subject: RE: [PHP-WIN] exec/system/passthru ?? Why would you want to leave a program running in the background, if you're using it to generate content? First, I believe that Windows NT/2K does not accept or like the amper

RE: [PHP-WIN] exec/system/passthru ??????

2001-03-15 Thread Fernando Madruga
Why would you want to leave a program running in the background, if you're using it to generate content? First, I believe that Windows NT/2K does not accept or like the ampersand (&) on the end: all programs launched will run in the background, unless they are command-line programs running on a do