Re: Program Execution and reading results
| From: | makhan | Date: | Thu, 21 Jun 2007 08:13:48 +0000 |
| Subject: | Re: Program Execution and reading results | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257536@lists.php.net to get a copy of this message | ||
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
pscott wrote:
>
>
> 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 simple, but anyway, you can use fopen() to open up the resultant
> file and do what you need with it.
>
> http://www.php.net/fopen
>
> --Paul
>
>
> All Email originating from UWC is covered by disclaimer
>
> http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
View this message in context: http://www.nabble.com/Program-Execution-and-reading-results-tf3956489.html#a11228521
Sent from the PHP - General mailing list archive at Nabble.com.