PATH_INFO and trans-sid
| From: | Chris Lee | Date: | Tue, 24 Apr 2001 13:31:35 +0000 |
| Subject: | PATH_INFO and trans-sid | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-50108@lists.php.net to get a copy of this message | ||
I am playing with using PATH_INFO for variables, like the zend.com article, I like this but I want
SID to follow a simmilar path. ie.
index.php?article=1234&PHPSESSID=xxxxxx
would be
index.php/article/1234/PHPSESSID/xxxxxx
but Im getting
index.php/article/1234?PHPSESSID=xxxxxx
is there a simple way to tell php to use the new format? other then
// top
ob_start();
...
// bottom
echo ereg_replace("?PHPSESSID=". session_id(), "/PHPSESSID/". session_id(),
ob_get_contents());
oi, what a mess ....
--
Chris Lee
lee@mediawaveonline.com