views:

4387

answers:

3

Okay so im working on this php image upload system but for some reason internet explorer turns my basepath into the same path, but with double backslashes instead of one; ie:

C:\\Documents and Settings\\kasper\\Bureaublad\\24.jpg

This needs to become C:\Documents and Settings\kasper\Bureaublad\24.jpg.

+2  A: 

try this

That should make them all single slashes.

The.Anti.9
A: 

Have you considered the stripslashes() function?

http://www.php.net/stripslashes

devinmoore
+3  A: 

Note that you may be running into PHP's Magic Quotes "feature" where incoming backslashes are turned to \\.

See http://us2.php.net/magic_quotes