Thanx a lot for your help. It adds to the .dat file. it's not fgets(). Dade [EMAIL PROTECTED]'s That's from the dat file..... any other ideas? -Dade --- Ernest E Vogelsinger <[EMAIL PROTECTED]> wrote: > At 03:37 02.03.2003, Dade Register said: > --------------------[snip]-------------------- > >I know I am doing the exact thing you are.... If > you > >or someone else doesn't mind, could you look @ > >http://dragonz-cavern.mine.nu/poems.phps and see > what > >I'm doing wrong? I am trying to parse it before it > >gets stored in my txt file. plz help. I'd really > >appreciate it. > --------------------[snip]-------------------- > > You're doing everything right. If you have a look at > the datfile you'll > notice there are NO backslashes. Right? > > Ok, so the culprit must be fgets() - and indeed this > can be found in the > online manual > (http://www.php.net/manual/en/function.fgets.php), > in the > user comments: > > php at silisoftware dot com 13-Jun-2002 06:44 > Beware of magic_quotes_runtime ! > php.ini-recommended for PHP v4.2.1 (Windows) had > magic_quotes_runtime set > ON, and that addslash'd all input read via fgets() > > So the solution here is to either add stripslashes() > after your datfile > read, or to use set_magic_quotes_runtime(0) (see > http://www.php.net/manual/en/function.set-magic-quotes-runtime.php). > > > > -- > >O Ernest E. Vogelsinger > (\) ICQ #13394035 > ^ http://www.vogelsinger.at/ > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php