[thelist] any/all post data

Jack Timmons jorachim at gmail.com
Sun Apr 19 13:10:46 CDT 2009


On Sun, Apr 19, 2009 at 12:53 PM, Matt Warden <mwarden at gmail.com> wrote:
> You could avoid the need to add an include to every page by simply
> using a rewrite rule in .htaccess where you forward all traffic to
> preprocess.php, do your thing, and then either buffer in the output of
> the original request (for static files) or include() the script of the
> original request (php files).

Provided they have mod_rewrite enabled, or on a server you can do that on.

I'd more suggest that they should already have a tool box included on
every page to handle stuff like this. Also, if we're looking at
mod_rewrite, there could be a better way of handling it depending on
file structure. What would be wrong, after all, to just force all
traffic to go through that file, and have that file include the
requested one after it parses the data? Provided the POST and GET
aren't being overwritten, it shouldn't cause any issues (that I can
see, at least).

-- 
-Jack Timmons
http://www.trotlc.com
Twitter: @codeacula



More information about the thelist mailing list