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
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 :
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
> 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
,
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
[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
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
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 --
'>
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
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
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
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
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
: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
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
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
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/
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
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
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
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]
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
[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
>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
[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,
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
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
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
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 ausgefhrt fr 127.0.0.1 mit 32 Bytes Daten:
Antwort von 127.0.0.1: Bytes=32 Zeit<
""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
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))
""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
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
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
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:
""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)??
>
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
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
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,
>
>
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
> >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
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
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
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
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
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
46 matches
Mail list logo