Ok, you want to parse a php file before processing the file then have the server process it and send it's output to the user?
Heh, now this is a problem I've never seen. But before I will even attempt figuring this out tell me if I've got your problem right.
Frag