Hi all,
Just a warning, think twice about using strtok and making dml calls against a mysql db. emulate_bound_params will reset your token. I came across when writing script to process a file of records and calling a inhouse logger function that inserted a record and wiped my token. The funny thing is I usually just use a file handle rather than getting whole file contents. Haha + our production box is postgres. Oh well..
Troy