[FX.php List] Tracking the web activity
Gjermund Gusland Thorsen
ggt667 at gmail.com
Sat Nov 18 02:53:54 MST 2006
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?
More information about the FX.php_List
mailing list