[FX.php List] Tracking the web activity
Erik Andreas Cayré
erik at cayre.dk
Sat Nov 18 02:57:31 MST 2006
Den 18/11/2006 kl. 10.53 skrev Gjermund Gusland Thorsen:
> using
> ---
>
> if( $_REQUEST['debug'] == 1 ) {
> print_r( $_REQUEST );
> }
>
> is OK if you are actively working on the site; developing.
>
> However when the client is using the solution by themselves,
> I typically use something like:
>
> $q = new FX( $serverIP, $serverPort );
> $q->SetDBData( $db, 'logTheWeb' );
> $q->SetDBPassword( $xmlUser, $xmlPass );
> $q->AddDBParam( 'IP', $_SERVER["REMOTE_ADDR"] );
> $q->AddDBParam( 'browser', $_SERVER["HTTP_USER_AGENT"] );
> $q->AddDBParam( 'script', basename( $_SERVER
> [ "SCRIPT_FILENAME" ] ) );
> // $q->AddDBParam( 'webSESSION', var_export( $_SESSION ) );
> // $q->AddDBParam( 'webREQUEST', var_export( $_REQUEST ) );
> $rLog = $q->FMNew();
>
> However you might see that I commented out two lines,
> what I would really like is to put the arrays of current
> working data into the log as well... but it just does not work :-(
>
> Anyone got a clue to how I can put visually hierarchical arrays(
> similar to the ones of print_r ) into a FileMaker field without
> flattening them?
What are you getting when the 2 lines are not commented out?
---
Erik Andreas Cayré
Spangsbjerg Møllevej 169
6705 Esbjerg Ø
Privat Tel: 75150512
Mobil: 40161183
---
»Kun p....sure mennesker kan ændre verden. Innovation skabes ikke af
'markedsanalyse', men af folk, der er afsindigt irriterede over
tingenes tilstand «
--Tom Peters
»Hvis du ikke kan forklare det simpelt, forstår du det ikke godt nok.«
-- Albert Einstein
»Hvis du ikke har tid til at gøre det rigtigt, hvornår vil du så have
tid til at lave det om?«
-- John Wooden, basketball coach
More information about the FX.php_List
mailing list