Re: convert "\" to "/"
| From: | Robert Cummings | Date: | Wed, 08 Oct 2003 14:37:41 +0000 |
| Subject: | Re: convert "\" to "/" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165441@lists.php.net to get a copy of this message | ||
Maybe you could rewrite your URLs so that they don't appear as GET
queries.
Cheers,
Rob.
On Wed, 2003-10-08 at 04:46, Diana Castillo wrote:
> I am receiving some data in which the sender has mistakenly sent urls with
> "\" instead of "/" to separate directories. e.g.
> http://www.anysite.com\page.htm
>
> I need to convert this string to
> http://www.anysite.com/page.htm but str replace
> ("\","/",$var) doesnt work.
> any ideas as to how to convert it.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'