Re: [PHP] PHP exec function.

2005-06-10 Thread Richard Lynch
On Fri, June 10, 2005 3:04 am, Bob Snowdon said: > > $execstring="winposd.exe \"${physical}-${logical}-${parameter}\""; > $output=exec($execstring); > exec only returns the FIRST LINE of output -- perhaps winposd (whatever that is) prints a blank line first? For that matter, winposd mig

Re: [PHP] Re: PHP exec function.

2005-06-10 Thread John Nichel
JamesBenson wrote: I prefer using the backtick operator for the reason that I could never get exec(); to work. exec() can be disabled in the php.ini (as with any php function), and is commonly done on shared hosting systems. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECT

[PHP] Re: PHP exec function.

2005-06-10 Thread JamesBenson
I prefer using the backtick operator for the reason that I could never get exec(); to work. http://php.net/manual/en/language.operators.execution.php Bob Snowdon wrote: I run Windows XP Home SP2, Apache 1.3.24 and PHP 4.3.1. I have a php script which uses the exec function to invoke a wi

Re: [PHP] PHP exec function.

2005-06-10 Thread Richard Davey
Hello Bob, Friday, June 10, 2005, 11:04:52 AM, you wrote: BS> Investigation/debugging indicates that the exec call simply doesn't invoke the BS> win32 application at all with no error indications from PHP. (echo statements BS> either side of the call). I have checked things like the path to the

[PHP] PHP exec function.

2005-06-10 Thread Bob Snowdon
I run Windows XP Home SP2, Apache 1.3.24 and PHP 4.3.1. I have a php script which uses the exec function to invoke a win32 application which writes its results to a file which is then used in what is returned to the browser by the script. It works. I wanted to install the same script invoking t

Re: [PHP] exec() function

2005-01-10 Thread tr
akshay wrote / napÃsal (a): exec() function is not working. Is there any setting in PHP.ini Do you use PHP5? If yes, use instead: example: $var=shell_exec('ls'); trobi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] exec() function

2005-01-10 Thread akshay
exec() function is not working. Is there any setting in PHP.ini -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] exec() function question on Solaris

2002-07-16 Thread Matt Babineau
I have an interesting question. I am working on a system that I need to run two commands in the shell, but when I use passthru() on the first command then run the second command to get the results from the first command, it doesn't work. Is there any way I can run 2 shell commands in the same exec

Re: [PHP] exec() function giving me fits

2002-07-02 Thread Analysis & Solutions
On Tue, Jul 02, 2002 at 01:00:48PM -0500, Jay Blanchard wrote: > > This is the one that worked, not the other one with the variables. Now this > one does not work and I don't insert any variables into it. Let's do a quick test to isolate where the problem is. Can you exec() some other simple st

[PHP] exec() function giving me fits

2002-07-02 Thread Jay Blanchard
Yesterday I could do this (all on one line); exec("curl -d \"name=myname&password=mypassword&btnsubmit=submit\" -s -o cdrlist.html https://theserver.com/list.html";); This is the one that worked, not the other one with the variables. Now this one does not work and I don't insert any variables in

RE: [PHP] Having trouble with PHP exec function calling CGI program

2001-08-13 Thread scott [gts]
d out where the server is chroot()ing to) if you think that your server is doing this, read up on "sandboxing", it might help you get a better picture of what's going on. > -Original Message- > From: Lara J. Fabans [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP]

Re: [PHP] Having trouble with PHP exec function calling CGI program

2001-08-13 Thread Lara J. Fabans
.Thankfully, this is just a tool for the client, and not something the world will see. Any other suggestions? Lara - Original Message - From: "Tony Frasketi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 13, 2001 6:08 AM Subject: [PHP] Hav

[PHP] Having trouble with PHP exec function calling CGI program

2001-08-13 Thread Tony Frasketi
Hello list members I'm a newbie and having trouble with the EXEC function call from a PHP script. I've submitted this problem to the list last week but so far no response. And I still haven't figured it out. So here goes again. PHP EXEC function seems to work ok for executing shel