Replace c:\ with file:\\\c| using PHP

Posted by Jean on Stack Overflow See other posts from Stack Overflow or by Jean
Published on 2010-03-08T06:47:09Z Indexed on 2010/03/08 6:51 UTC
Read the original article Hit count: 312

Filed under:

Hello,

I have the local file path as c:\new folder\pdf\today\k.pdf I want to replace the c:\ with file:\\c|

I tried str_replace('','',) but I get error due to the slash, no stripslash will not work.

Thanks Jean

© Stack Overflow or respective owner

Related posts about php