PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : string ops


moehome
14.05.2002, 14:51
hey ya,
I have some text that contains " and ´ symbols,
since I´d like to process these files as strings, I need to add a \ before with addslashes, but when I try to do so, I need to define the string, which doesn´t work, since parts of the text are ignored or I get some parse-errors

you know how to solve that problem??


sami
14.05.2002, 14:56
how do you get this string?
is it in a variable? or an sql result? or a http post?
if it is hardcoded, yust add the backslashes by hand

moehome
14.05.2002, 15:04
hmm, just a bloody txt-file, but about 1000 pages!
greez moe

pate33
14.05.2002, 15:23
that link should answer your question:

http://www.php.net/manual/en/configuration.php#ini.magic-quotes-runtime

:P

so long

sami
14.05.2002, 15:35
but you read the file, e.g. by file() or gets(), don´t you?
in this case it would be in a variable then.

moehome
15.05.2002, 14:44
thx a lot, already working!!