What i want is for a user to upload a file, then for the php to open that file and strip certain tags and then output in the browser the remaining code.
It's all done except i don't know how to let the php open the file and edit the contents
Haha! I take time out of my day to type up working code for you that does exactly what you want, and your reply is "doesn't matter"? So who's the <<word>>? Maybe someone else will help you, but it won't be me.