Re: [PHP] Program Execution and reading results

2007-06-21 Thread makhan
Thanks Paul for your response. my issue is not just reading from the output text file. But my issue is what I would do in the php script while the program is execting( i.e after issueing shell_exec() command) and how would i know that file has been written so that i can read it using php. Thanks

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Paul Scott
On Thu, 2007-06-21 at 01:13 -0700, makhan wrote: Thanks Paul for your response. my issue is not just reading from the output text file. But my issue is what I would do in the php script while the program is execting( i.e after issueing shell_exec() command) and how would i know that file has

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Zoltán Németh
2007. 06. 21, csütörtök keltezéssel 01.13-kor makhan ezt írta: Thanks Paul for your response. my issue is not just reading from the output text file. But my issue is what I would do in the php script while the program is execting( i.e after issueing shell_exec() command) and how would i know

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Richard Heyes
makhan wrote: Thanks Paul for your response. my issue is not just reading from the output text file. But my issue is what I would do in the php script while the program is execting( i.e after issueing shell_exec() command) and how would i know that file has been written so that i can read it

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Richard Heyes
use exec() instead of shell_exec() Why? -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Zoltán Németh
2007. 06. 21, csütörtök keltezéssel 10.08-kor Richard Heyes ezt írta: use exec() instead of shell_exec() Why? hmm I thought the OP's question was about how can he get output/return value from the external program (the file name for example) - maybe it was my misunderstanding greets Zoltán

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Richard Heyes
hmm I thought the OP's question was about how can he get output/return value from the external program (the file name for example) - maybe it was my misunderstanding In which case I would still use shell_exec(): ?php $output = shell_exec('ls -l'); ? -- Richard Heyes 0844 801 1072

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Zoltán Németh
2007. 06. 21, csütörtök keltezéssel 10.46-kor Richard Heyes ezt írta: hmm I thought the OP's question was about how can he get output/return value from the external program (the file name for example) - maybe it was my misunderstanding In which case I would still use shell_exec(): ?php

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Daniel Brown
On 6/21/07, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 06. 21, csütörtök keltezéssel 10.46-kor Richard Heyes ezt írta: hmm I thought the OP's question was about how can he get output/return value from the external program (the file name for example) - maybe it was my misunderstanding

Re: [PHP] Program Execution and reading results

2007-06-21 Thread makhan
Thanks guys for your response. I think this output from reply can solve my problem. Becuase I can return some value like ' fileready == true' as the output from the executable program. And when fileready is true I can read the output text file. Can you please explain a little bit what kind of

[PHP] Program Execution and reading results

2007-06-20 Thread makhan
I am using php to write inputs I receive from browser into a text file.Than I use shell_exec() to execute a program on server that writes those inputs from the text file and write its output to another text file. Now after my program has written its output I want to read this text file from php

Re: [PHP] Program Execution and reading results

2007-06-20 Thread Paul Scott
On Wed, 2007-06-20 at 21:42 -0700, makhan wrote: Now after my program has written its output I want to read this text file from php and send it back to the browser. Can someone please guide me how I can do this. This seems like an overly complex way of doing something that sounds quite

[PHP] Program execution stops at exec()

2002-05-24 Thread Tom Mikulecky
Hello In one script I use exec() to execute a shell script which takes 2-3 hours to run. I disabled user abort and set time limit to more than one day. The shell script finishes well but no instruction after exec() is run. The script finishes with no error nor warnings. Some of you know hwat

[PHP] Program execution functions doesn´t work in my system

2001-06-24 Thread Beginning PHP Programmer
Hi In the PHP manual there are some program execution functions like passthru(), exec() and system(). I´ve got PHP4 installed on IIS 5.0 on Windows 2000 Server, and it works fine. I tried with a very simple script like the following: ? $commandstring = "cmd"; passthru($commandstring);?

RE: [PHP] Program execution functions doesn´t work in my system

2001-06-24 Thread Jason Lustig
I need to run some external programs from a PHP script. How could I do that? You might be able to use them through (D)COM objects, since you're on an NT server. I'm not sure about the passthrough() functions and stuff on NT, though... I've never really used them (or had reason to). --Jason --

Re: [PHP] Program execution

2001-02-03 Thread Richard Lynch
This happens only when I use php as a module: When I'd like to run a command with exec or system function I got always this message and the program never executes: Warning: Unable to fork [the command's name what I'd like to run] in filename on line XY Your OS may have placed an upper bound on

[PHP] Program execution

2001-01-31 Thread Czapry Gbor
Hi! This happens only when I use php as a module: When I'd like to run a command with exec or system function I got always this message and the program never executes: Warning: Unable to fork [the command's name what I'd like to run] in filename on line XY What' the matter?