<?php if (isset($PATH_INFO)) { $var = explode('/', $PATH_INFO); for($c = 1; $c < count($var); $c += 2) { $$var[$c] = $var[$c + 1]; $HTTP_GET_VARS[$var[$c]] = $var[$c + 1]; } } function fix_session($output) { global $SID; $o_sid = '?'. $SID; $n_sid = '/'. str_replace('=', '/', $SID); $output = substr_count($output, $o_sid) .'<br>'. str_replace($o_sid, $n_sid, $output); return $output; } ob_start('fix_session'); ?> I am prepending this file and Im not getting the results I want. the substr_count is there just to show me how many instances its going to replace. well the answer is 11, there are 11 hard coded link.php?$SID and the rest (aprox 20) are all left upto trans-sid. they do not get replaced, the other hardcoded 11 do though as expected. how can I convert the trans-sid ones? without hardcoding every single link... ? thats alot of links and forms I have to replace.... -- Chris Lee [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]