[TYPO3] Query data string data still available?
Christopher Torgalson
bedlamhotel at gmail.com
Thu Aug 7 20:23:12 CEST 2008
Hi there,
La Farge Douglas wrote:
> Hi,
>
> I have an application that is written in PHP (called via TS) that
> records click stats (in mysql) to certain pages (it also records other
> pieces of info like user data - user must be logged in to view certain
> content).
>
> One of the pieces of data that we record is the page id (id=1). The
> problem is we have installed and are using RealURL and thus all of the
> query string data is "lost" when real url builds its URLs for the site.
>
> I'm wondering if there is a way to determine what the query string
> data was before RealURL took over? If I understand RealURL correctly
> it does a "reverse" translation on the URL passed to Typo3 so that it
> can then deliver the proper content. When it does this "reverse"
> translation is it rebuilding what the query string would look like if
> RealURL was not installed?
The info you're after should be available somewhere in $_SERVER [1], and
it's also possible to do with pure TS if you want something
configurable. I've posted an example at
http://www.typo3apprentice.com/samples/tv-print-link/
[1] http://php.net/reserved.variables.server
--
Christopher Torgalson / bedlamhotel at gmail.com
More information about the TYPO3-english
mailing list