> -----Original Message-----
> From: Jennifer Goodie [mailto:[EMAIL PROTECTED]
> Sent: 09 July 2003 00:43
> 
> > $filevalue = str_replace("\\", "/", $filevalue);
> >
> > it is reversing the "\\" to "//" but not replacing them 
> with just a single
> > "/".
> 
> I think you need to escape your \ so each \ is \\ so your 
> string should be
> "\\\\"

Or use single quotes for your strings:

  $filevalue = str_replace('\\', '/', $filevalue);

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to