как сделать так...

Discussion in 'Болталка' started by megozver117, 28 Mar 2012.

  1. megozver117

    megozver117 New Member

    Joined:
    19 Nov 2011
    Messages:
    0
    Likes Received:
    0
    Reputations:
    0
    Народ есть мыльники в формате:
    А надо:
    Подскажите
     
  2. aferd0k

    aferd0k Banned

    Joined:
    12 Feb 2012
    Messages:
    0
    Likes Received:
    0
    Reputations:
    0
    Что именно подсказать ? Они же одинаковые ))
     
  3. megozver117

    megozver117 New Member

    Joined:
    19 Nov 2011
    Messages:
    0
    Likes Received:
    0
    Reputations:
    0
    что бы не столбиком было)
    Весь день пишу скрипт уже башка не варит
     
  4. xxddz

    xxddz Elder - Старейшина

    Joined:
    2 Oct 2009
    Messages:
    734
    Likes Received:
    365
    Reputations:
    162
    Через Notepad++ замени перенос строки на пробел.
     
  5. megozver117

    megozver117 New Member

    Joined:
    19 Nov 2011
    Messages:
    0
    Likes Received:
    0
    Reputations:
    0
    Эт там где?
     
  6. xxddz

    xxddz Elder - Старейшина

    Joined:
    2 Oct 2009
    Messages:
    734
    Likes Received:
    365
    Reputations:
    162
    Ctrl+F
     
  7. daniel777

    daniel777 Member

    Joined:
    8 Jul 2010
    Messages:
    520
    Likes Received:
    90
    Reputations:
    37
    PHP:
    <?php

    $s 
    ''//текст который заменять
    $n ''//текст на который заменять

    file_put_contents('new.txt'str_replace($s$nfile_get_contents('file.txt')));

    ?>