Connecting Tech Pros Worldwide Forums | Help | Site Map

shell_exec not returning all the output from command

Newbie
 
Join Date: Sep 2007
Posts: 5
#1: Feb 6 '08
Hi Friends
I have an issue with shell_exec. I am trying evoke a command from browser. The command get executed properly without any issue however it deos not return all the output which is shown on when I try to execute the same command in the DOS shell.
The details are as follows :
When I execute that command the output seen in dos shell is

@(#) International Ispell Version 3.1.20 (but really Aspell 0.50.3)


& gest 24 1: geest, guest, gets, fest, get, EST, est, gist, gust, jest, Gert, Best, West, best, gent, lest, nest, pest, rest, test, vest, west, yest, zest

but when I evoke the same command using shell_exec, it returns
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50.3)


the output gets truncated I am not sure why this happens.

Evironment Details
OS : Windows XP
PHP version : 5.1.4
IIS :5.1

Any help to resolve this issue in thanked in advance.Please do let me know if there is alternative approach to achieve the functionality.

Regards
Yogesh

pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#2: Jun 27 '08

re: shell_exec not returning all the output from command


Heya, Yogesh.

FCKEditor has a successful spellchecker that is based on aspell. Check out their source code (http://www.fckeditor.net/).

Alternatively, try using exec() (http://php.net/exec).
Newbie
 
Join Date: Sep 2007
Posts: 5
#3: Jul 11 '08

re: shell_exec not returning all the output from command


Thx dear
I will confirm this and get back you you
:)
Reply


Similar PHP bytes