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 that file has been written so that i can read it using php. use exec() instead of shell_exec() http://hu2.php.net/manual/en/function.exec.php and specify the second and third parameters to get output and return value from the external program. then it can return the filename, thus you can open it from php greets Zoltán Németh > > 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. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php