Chris Carey wrote: > if (!file_exists($argv[1])) exit; > $input=@file($argv[1]); Ryan Byrd wrote: > $fp = fopen ($argv[1],"r"); Josh Coates wrote: >your code should assume that the input is coming via standard input (stdin) >