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
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 script from \\xxx.xx
,
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
27;>'-- Mensagem Original --
'>'Date: Tue, 20 Dec 2005 10:43:48 -0200
'>'From: Fábio Ottolini <[EMAIL PROTECTED]>
'>'Reply-To: [EMAIL PROTECTED]
'>'To: php-windows@lists.php.net
'>'Subject: [PHP-WIN] exec() problem
nal --
'>'Date: Tue, 20 Dec 2005 10:43:48 -0200
'>'From: Fábio Ottolini <[EMAIL PROTECTED]>
'>'Reply-To: [EMAIL PROTECTED]
'>'To: php-windows@lists.php.net
'>'Subject: [PHP-WIN] exec() problem
'>'
'&
Dear Comrades,
Can someone please explain why this is script is not working on my win2k
box with PHP 4.3.4?
";
print $mx[0][1];
?>
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 );
nothi
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 p
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 bac
I wrote a script to backup my Thunderbird user profile every night by
zipping the whole profile (with subfolders) into a zip file.
I use exec to call Winzip with command line parameters (see -
http://www.memecode.com/docs/winzip.html)
The script worked fine until I tried it under my Apache 2.
Hello,
I'm running php 4.3.4 on IIS 5 with ISAPI. I want to execute a script which
open Matlab (mathematical software) and then open a specific file into
matlab. Everything works the way I want on the serveur through the command
line php.exe.
However, with a php script through a web browser the fo
Hi,
may be someone can help me:
I want to use the exec() function to run an executable as background
process. This means my php script should not wait for the end of the
background process. I tried a lot but without success. My script always wait
for the end of the background process.
My php sc
Hello,
I'm working on a web front-end for our build system. One of the
things I need to do is allow the user to start a lengthy build in the
back and continue using the web page.
Unfortunately, I can't find out how to do it. I can start the
build, but the web page won't complete loadinguntil th
Hi,
I am running IIS 5 and php 4.2
I will give a lilltle background on what I am trying to do,
I am trying to run a program called convert.exe through php. This program
will take a jpg and reduce the resolution of the jpg.
The command format the works from the Command Line is:
convert -size 10x
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(), pas
I am trying to run one command, then run a second command to pull the
results from the first command. is there a way to do this? Its seems
when I run the first command like
passthru(command1)
then run the second command to get the results from the first
passthru(command2)
the results of co
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/
I am trying to get php to create a DNS entry on a different server.
When I open a command shell and enter the command it works fine. (
(dnscmd.exe servername /EnumRecords domainname @) OR
(dnscmd.exe IPaddress /EnumRecords domainname @)
When I have php exec() the same command from a command line
Hello
I try to use EXEC function to execute a command line. The command line is
correct but the exec doesn't return anything.
Have you any idea about it ?
I give you my source :
exec('"c:\progra~1\swish-e\swish-e.exe" -w "test" -f
C:/Progra~1/EasyPHP/www/atelier_dev/data/index.swish-e',$out);
I'm trying to use exec (or system) to create NT user accounts on our domain. My plan
was to add a user on the command line with the "net user /domain" command. This has
to be executed on the PDC (NT 4 service pack 6) rather than on the web server (which
is 2000, but I'm not sure that matters)
I know this topic probably comes up from time to time, but I wanted to get
up to date feedback.
on php 4.06/win2k, exec(), system(), and passthru() work only sporadically,
in spite of the change notes for 4.06 that state the "exec family" problem
was fixed.
For instance, try some simple shell co
I have a PHP program that works fine if I am running Apache, but breaks
using IIS.
The piece that breaks is an exec function call.
I am calling exec with a command that pipes 3 programs together and
redirects the stdout to a file.
When it is run from Apache, it works. When it is run from II
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]
er. Any sort of php function that could make the users pc
do something wouldn't be php. It'd be html, xml, jscript etc.
Sorry
Ross
-Original Message-
From: Yaroukh [mailto:[EMAIL PROTECTED]]
Sent: 10 October 2001 12:55
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Exec() again
Hi
Hi there
Is anybody able to run an external application from PHP? (under Win32) I
mean to run WinAmp for example? (or new explorer window)
Have a nice day
[EMAIL PROTECTED]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
[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
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, it has been mentionned in the ChangeLog of PHP-4.0.6 that popen
and exec
problems on Win2k were fixed in this version.
Is there any change in the configuration? or Wh
I have tried running the PHP funciton exec() on a Microsoft Windows 2000
(5.00.2195 Service Pack 1) box and it does not run. The cmd.exe process
loads but just sits there, as if it either crashed quietly or is still
waiting for something (like it doesn't know how to process the request).
The same
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
Hello,
I feel like I'm beating a dead horse (I think that's
the saying), but I'm having trouble with IIS and exec.
I've read everything I can find on the subject, but
I'm still unclear on a few things. What I want to do
is fairly simple. Basically, some user will come to my
page and select an opt
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 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 bug
fixed? I have very little chances to get PHP compiled
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)??
>
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)??
THX Helmut
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
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
ng whatever it has to do just before exiting... :)
HTH,
Fernando Madruga
-Original Message-
From: Josh Seward [mailto:[EMAIL PROTECTED]]
Sent: quinta-feira, 15 de Março de 2001 15:10
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] exec/system/passthru ??
I am trying to open a program and le
I am trying to open a program and leave it running in the background. The script will
always hang until I close the program that it opens?
Here is my code
$result = passthru($command."& 1> output.txt 2>&1; print output.txt; &", $pass);
I have tried using exec() system() and passthru() all with
I want my PHP script to execute an external program (which creates a file),
then php opens this file and fpassthru(..) the file to the browser.
The external exe needs a commandline arguement. This is what I have tried:
exec("c:\\path\\to\\exe\\myProg.exe myValue=123456789");
This, along with s
Hi,
I am new here. I am working on my first real PHP project. I use Ora's
Website 2.5.8, php 4.04 Win cgi mode, NT4.
I have a prog to send email to many users.
If I invoke this from a PHP4 script, php waits for the mail program to
finish before it continues. This can be quite a long time.
I saw
Hi,
Im having a Problem running an application from a PHP page using the
Exec() function (as well as all the other program execution fuctions) on a
Windows NT Server running Apache.
The code I attempt to run is : $ReturnVal = exec("Application.exe");
It returns with Unable to F
Has anyone got exec/passthru/system to work under
Win2k?
smime.p7s
70 matches
Mail list logo