• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spaces and dots/periods in URLs

[eluser]Rob Corley[/eluser]

Apologies first if I am posting in the wrong place!

I am trying to pass a filename in the URL, so I am using urlencode to encode something like this:-

http://www.example.com/page/file name.ext/some folder name/

I then want to use the strings 'file name.ext' and 'some folder name' in the page controller. However codeigniter when I retrieve the URL string returns it with the . and the spaces as underscores:-


So I have no way to differentiate between the 2. (some filenames contain multiple dots so I can't just replace the 4th last character).

Many thanks in advance!

Messages In This Thread
Spaces and dots/periods in URLs - by El Forum - 03-20-2011, 05:10 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.