help me escape "/" in url parameter.

Discussion in 'PHP' started by LOD, Aug 31, 2010.

  1. #1
    the problem is very simple i need to escape the "/" char from the url. dont say its "%2F" coz my server doesnt take parameter as "index.php?key=parameter" it takes parameter as "home/key/parameter" format. and for my server putting "%2F" by urlencode(parameter) doest work. it shows object not found. what am i supposed to do?
    how do i escape "/" in a server where it takes parameter by "/" itself??

    please help.

    example:
    index.php?path=drive%2Ffolder
    works pretty fine in other server. but on my system
    home/path/drive%2Ffolder
    would throw an error.

    what can i do?
    btw i am using zend framework.
     
    LOD, Aug 31, 2010 IP
  2. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #2
    Im assuming your using mod_rewrite - if so post the contents of your .htaccess
     
    danx10, Aug 31, 2010 IP