On Wed, 2004-08-25 at 16:14, Radu Radoveneanu wrote: > Sami POTIRCA said: > > > > Ai putea sa intri in sursa aplicatiei aleia, (web manager) caci sigur ai > > sursa si sa il fortezi sa salveze cum trebuie > > > as putea dar nu ma pricep :) singurele chestii concludente ar fi in codul > de mai jos, oricum deocamdata merge cu dos2unix pana cand gasesc o > modalitate sa salveze direct unix, thanks > > $fh = fopen($path,"w"); > fwrite($fh,stripslashes($post_vars["FILEDATA"])); > fclose($fh);
http://ro2.php.net/manual/en/function.str-replace.php si vezi exemplul de acolo, s-ar putea sa te ajute :) HINT: <!-- Warning: untested code --> $fh = fopen($path, "w"); $text_to_write = stripslashes($post_vars["FILEDATA"]); fwrite($fh, str_replace("\r", "", $text_to_write)); fclose($fh) <!-- Warning: untested code --> HTH, Sami -- This message was scanned for spam and viruses by BitDefender For more information please visit http://www.bitdefender.com/ --- Detalii despre listele noastre de mail: http://www.lug.ro/
