My php code is large... because there are sooo many spaces and well fomated
I want have another version on my server, which take out all unnessery spaces and comments...
Anything can do that or I must do it by hand?
Ctrl + h in notepad, set the find to " " and the replace to "", that will remove every space if you hit remove all, but it will also work if you hit find next or replace manually...
There should be somekind of software to do that for you right>?
if just replace all spaces, you don't know which of them are useless ones which aren't
Trust me the speed increase for that would be tiny and for the difficulty it would not be worth it.
I need it just for smaller size, more compact script, sometimes the html codes inside PHP can be shortened, and use less bandwidth
Is your website pushing the bandwidth that much? or the space that small?
NO, I don't have that much bandwidth. But just want those PHP files be smaller, I think that will reduce the time on processing them
Doing it you would not gain significant space, and the bandwidth would not be effected at all, because your script produces the same output. (And in case of PHP, only output is sent through.) It would not be parsed faster, because the parser removes spaces and remarks anyway. And I think you agree that we can assume that the original file and the file without spaces will need the same time to be read LOCALLY...
And you would lose your oversight on the script.