[wp-hackers] concatinating PHP code files
Jon Mihkkal Inga
lilla.molnet at gmail.com
Thu Mar 25 21:58:12 UTC 2010
I still can't get why you want to do this or how it would make anything
easier. I doubt that having a bigass file to scroll up and down will satisfy
your curiosity. The way to do it is to pick a function and go backward
through all its callers or forward through all its calls. If you make a
single file from all code chances are you'll just end up more confused
'cause you won't know which function came from what file originally if you
don't spend a lot of energy designing the merging script. I suspect that
energy is better spent searching the code manually in the first place. Get
yourself a tabbed code editor with file searching capabilities. I use
notepad++ <http://notepad-plus.sourceforge.net/>, simple yet flexible with
auto completion and goodies.
cheers
/jomik
2010/3/25 Dion Hulse (dd32) <wordpress at dd32.id.au>
> Now that could get messy :)
>
> One of the first things i did with QI( WordPress Quick Installer) was write
> a build script which concencated the multiple files i've got into a single
> downloadable file. then wrote a minify'er, then a compressor. Result is
> 300KB accross a dozen files down to a 50kb single file.
>
> Moving code inline is just hell, You've got globals to deal with, amongst
> other things.
>
> Using PHP 5.3's anonymous functions you might be able to achieve it tho..
>
>
> On Fri, 26 Mar 2010 09:25:53 +1200, Arlen Beiler <arlenbee at gmail.com>
> wrote:
>
>> Worse yet, let's find something that will do that AND replace all the
>> function calls with the function code.
>>
>
> --
> Dion Hulse / dd32
> Contact:
> e: contact at dd32.id.au
> Web: http://dd32.id.au/
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list