Page 1 of 1

Comments remove

Posted: Tue Aug 17, 2004 7:09 am
by Pozor
Hi,

i wanna remove all comments form a php file,
somebody knows a thread here that is about that topic, i couldnt find one.
but im shure i saw once one with this kinda topic.

greez Pozor

Posted: Tue Aug 17, 2004 8:32 am
by Buddha443556
You could run the files through php using the -w flag that will strip comments and whitespace.

Code: Select all

php -w script.php > clean.php

Posted: Tue Aug 17, 2004 9:41 am
by Pozor
And how can i do this with a normal php skript without a shell?

with exec or system or so?

greez Pozor