Re: [PHP] Forward slashes and header requests

2008-08-24 Thread Jochem Maas
Dave M G schreef: Ashley, Thank you for responding. best way to fix it was to use $location = str_replace('//','/', $_SERVER['REQUEST_URI']); Unfortunately the trim() command I use seems to destroy all slashes anyway, so this doesn't seem to have an impact. Thank you for the suggestion,

Re: [PHP] Forward slashes and header requests

2008-08-24 Thread Jochem Maas
Jochem Maas schreef: ... apply ... or I'm just inconsistent or ... well Cumming no doubt has something to say about it ;-) that should have been Cummings as in Robbert. don't you just hate it when you see a typo after you hit send and before the email leaves the screen :-P -- PHP

Re: [PHP] Forward slashes and header requests

2008-08-21 Thread Ashley Sheridan
I had a similar thing happen with a file management system. I found the best way to fix it was to use $location = str_replace('//','/', $_SERVER['REQUEST_URI']); Ash www.ashleysheridan.co.uk ---BeginMessage--- PHP List, I have built my own CMS system, and I've just finished setting it up so

Re: [PHP] Forward slashes and header requests

2008-08-21 Thread Dave M G
Ashley, Thank you for responding. best way to fix it was to use $location = str_replace('//','/', $_SERVER['REQUEST_URI']); Unfortunately the trim() command I use seems to destroy all slashes anyway, so this doesn't seem to have an impact. Thank you for the suggestion, though. Anyone

[PHP] Forward slashes and header requests

2008-08-20 Thread Dave M G
PHP List, I have built my own CMS system, and I've just finished setting it up so that it sends a test cookie to see if the browser has cookies enabled. If it doesn't, it does URL rewriting to handle sessions. Part of this process involves reloading the page, and sending back a header to