All pastes #82521 Raw Edit

Someone

public php v1 · immutable
·published 2006-07-08 16:53 UTC
rendered paste body
            fwrite($pipes[0],$word);            fclose($pipes[0]);            //read stdout            while (!feof($pipes[1])) {                $out .= fread($pipes[1], 8192);            }            fclose($pipes[1]);            //read stderr            while (!feof($pipes[2])) {                $err .= fread($pipes[2], 8192);            }            fclose($pipes[2]);            $exitcode = proc_close($process);            if($err){                //something went wrong                trigger_error("aspell returned an error: $err - exitcode: $exitcode", E_USER_WARNING);                return array();            }