Re: [PHP] Re: Tool to remove comments??

2002-03-23 Thread heinisch

At 23.03.2002  00:05, you wrote:
>
>there's also two tools called sed and grep that are available on any unix
>system. and probably easily gettable on windblows.
>
>That can probably remove most comments.

I know, and use these on LINUX, but I don´t want to spend time to develop 
something
which is already made and tested. This will take a minimum of 6 hours dev.
I´m now in a position, where I cannot spend this time

>Why you would want to remove comments, I don't know.
>They are very useful in the future when fixing something or changing
>something.
>Good Code == Commented Code
>Well, Good Code is at least a subset of commented code ;)

That´s right, there are two versions of code, one for development,
the other, cleaned is on the production (ISP)machine. As I write a lot of 
comments in a source,
(Good Code == Commented Code ;) ) It could make more than 50% of the code.
As you maybe have read the posts on speeding up the processing of code 
(last week),
every line which is not necessary shouldn´t be read by the PHP-parser. I 
also found
that if you remove the LF (CR/LF) combination, there´s a time reduce, even 
this practice
is dangerous, especially for JavaScripts.

>If you don't want a customer to see them, use the Zend Encoder and hide
>all your source.

This makes need of php4* on the ISP, and I don´t want to encrypt the code, 
just clean it.
To encrypt, Enrico suggested a link http://pobs.mywalhalla.net/ which does 
this, free of charge.

Any other suggestions out there?

Oliver





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Tool to remove comments??

2002-03-22 Thread Michael A. Peters

there's also two tools called sed and grep that are available on any unix
system. and probably easily gettable on windblows.

That can probably remove most comments.

Why you would want to remove comments, I don't know.
They are very useful in the future when fixing something or changing
something.
Good Code == Commented Code
Well, Good Code is at least a subset of commented code ;)

If you don't want a customer to see them, use the Zend Encoder and hide
all your source.

On Sat, 23 Mar 2002 04:38:40 -0300
"Julio Nobrega" <[EMAIL PROTECTED]> mentioned:

>   There's an php obfuscator, http://pobs.mywalhalla.net/, and one of the
> options is to remove comments.
> 
> --
> Julio Nobrega.
> 
> Um dia eu chego lá:
> http://sourceforge.net/projects/toca
> 
> Ajudei? Salvei? Que tal um presentinho?
> http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
> "Oliver Heinisch" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi Folks,
> > does anybody know a tool for removing comments out of PHP scripts?
> >
> > I mean // this is a comment
> > and /* this is also a comment */
> >
> > it should also handle  something like
> > echo'http://somewher.somecom/somepage'; // this goes to somewhere
> > and multiline comment like
> > /*
> > ..blah
> > */
> > maybe anybody has an awk script, that he/she will share with me.
> > TIA Oliver
> >
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php