Skip to main content
13 events
when toggle format what by license comment
Oct 10, 2012 at 16:13 comment added Mild Fuzz you just need to change if (!strpos($value, '.php')) to include whatever system you choose.
Oct 10, 2012 at 11:10 comment added NetConstructor.com based on the solution outlined by @mildfuzz - what do you guys believe to be the best method to automatically exclude any file or folder (and its subfiles/folders) from being included within his auto-include approach? My thought would be to use the underscore approach as a prefix. What proper code would be the best approach to include such capabilities?
Feb 1, 2011 at 18:52 comment added kaiser @MildFuzz: Mike just pointed me at the transients API. Maybe that could get part of some sort of sollution...
Feb 1, 2011 at 9:19 comment added Mild Fuzz @kaiser, I suppose you could do it with cron scripts running a function that run's the above folder search but writes the results to a DB/textfile, then bases the loads on that function. This could potentially lead to unfinished work going into the load also.
Feb 1, 2011 at 7:35 comment added kaiser @NetConstructor: Would be interested in some sollution too.
Sep 10, 2010 at 15:25 comment added Mild Fuzz @MikeSchinkel I just call my working files foo._php, then drop the _php when I want it to run.
Sep 7, 2010 at 12:09 comment added Tom J Nowell Nice but it leads to inflexibilities, also what happens if an attacker manages to drop their code in there? And what if the ordering of includes is important?
Sep 7, 2010 at 11:32 vote accept NetConstructor.com
Sep 20, 2010 at 23:00
Sep 7, 2010 at 4:27 comment added NetConstructor.com love the idea but I agree this might possibly lead to unnecessary loading for each request. Any idea if there would be a simple way to have the final functions.php file being generated automatically cached with some type of update if/when new files are added or at a specific time interval?
Sep 7, 2010 at 4:25 vote accept NetConstructor.com
Sep 7, 2010 at 11:32
Sep 6, 2010 at 19:55 comment added MikeSchinkel @mildfuzz: Nice trick. I personally wouldn't use it for production code because it does for every page load what we could easily do once when we launch the site. Also, I'd add in some way to omit files, like not loading anything starting with an underscore so I could still store works in progress in the theme directory. Otherwise, nice!
Sep 6, 2010 at 19:51 history edited MikeSchinkel CC BY-SA 2.5
Correctly formatted code
Sep 6, 2010 at 13:50 history answered Mild Fuzz CC BY-SA 2.5