|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i'm pretty new to php (started last night URL but i have experience with perl, asp, c, java, name it..
so i started coding a php guestbook (not really useful, but good to start learning). so i found out how to write to files and stuff, BUT (!!) whenever i write a string to a file that contains a " or a ' it writes that, but with a (backslash) before it. i tried using set_magic_quotes_runtime but it didn't seem to work, it's really kinda annoying. anyone knows how to get rid of this? thanks |
|
#2
|
|||
|
|||
|
Use stripsplashes() on the string before you write it to the file:
$string = stripslashes($string); adam |
|
#3
|
|||
|
|||
|
i knew it wouldn't be hard URL
-thanks |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > how do i get rid of those backslashes? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|