Thanks, all for the input. Sounds like too much work for what I plan to do with it. Gonna stick with my original code. > > Wellington Fan writes: > > [is there] any other > > way to parse a PHP file and return as a string? > > > > You could do something like filter out comments > as in the example 1 at: http://us2.php.net/tokenizer >