Preprocessing PHP to remove functionality from built files
问题 I've been reading about Phing and Ant and I'm not sure which, if either, of these tools are most useful for this scenario. It could easily be debug statements etc, but I'll give you our literal scanario. We have a free and premium version of a downloadable PHP app, and rather than including just a variable hidden somewhere and then doing: if($premium == true) { echo 'some additional functionality'; } else { echo 'basic functionality'; } Obviously someone could then take the source and change