REP Points to first person who can give me a solution to my problem

Discussion in 'BlackHat Lounge' started by rytpillager, Aug 20, 2011.

  1. rytpillager

    rytpillager Regular Member

    Joined:
    Sep 16, 2009
    Messages:
    255
    Likes Received:
    196
    Occupation:
    my own boss
    Location:
    bhw
    Hey I need a website that can generate words to a list..

    example
    input: word1 word2 word3 word4 word5

    output:
    word1
    word2
    word3
    word4
    word5

    i also need to be able to generate the lists from output format into the original input format..

    +REP and thanks to first person who can solve my problem.
     
  2. razzlecore

    razzlecore Registered Member

    Joined:
    Dec 12, 2010
    Messages:
    90
    Likes Received:
    27
    Location:
    -
    You can make a simple php script for that:

    Code:
    <form method="post">
    <textarea cols="80" rows="10" name="text"></textarea>
    <input type="submit">
    </form>
    <?php
    if(!empty($_POST['text']))
    {
      $text = $_POST['text'];
      $output = str_replace(" ","<br />",$text);
      echo "$output";
    }
    ?>
     
    

    To change it back:
    Code:
    <form method="post">
    <textarea cols="80" rows="10" name="text"></textarea>
    <input type="submit">
    </form>
    <?php
    if(!empty($_POST['text']))
    {
    $text = $_POST['text'];
    $output = str_replace("\n"," ",$text);
    echo "$output";
    }
    ?>
     
    
     
    • Thanks Thanks x 1
    Last edited: Aug 21, 2011
  3. uncguy4321

    uncguy4321 Regular Member

    Joined:
    Jul 10, 2011
    Messages:
    340
    Likes Received:
    120
    Occupation:
    Part time contractor and consultant...but full tim
    Location:
    Parts unknown (eastern US)
    Though i'd change that last line to echo $output; without the quotes.
     
    • Thanks Thanks x 1
  4. razzlecore

    razzlecore Registered Member

    Joined:
    Dec 12, 2010
    Messages:
    90
    Likes Received:
    27
    Location:
    -
    Yeah quick code typing, they dont add something to the code indeed, but they don't do any harm either :)
     
  5. rytpillager

    rytpillager Regular Member

    Joined:
    Sep 16, 2009
    Messages:
    255
    Likes Received:
    196
    Occupation:
    my own boss
    Location:
    bhw
    I don't have hosting but if you guys hosted this somewhere and picked a few keywords it could be ranked easy, I couldn't find it anywhere on google.. don't know if its because i didn't know what to search for or if there is just no content out there like this.
     
  6. daltarak

    daltarak Newbie

    Joined:
    Oct 4, 2009
    Messages:
    22
    Likes Received:
    3


    You can do it with notepad++

    To make words a list open search&replace window (ctrl+h)
    Find what: (just press space bar once)
    Replace with: \n
    Search Mode: Regular Expression

    To make words from list, just swap the search & replace strings

    Find what: \n
    Replace with: (just hit space bar once)
    Search Mode: Regular Expression

    I hope that helps.
     
    • Thanks Thanks x 1
    Last edited: Aug 21, 2011
  7. rytpillager

    rytpillager Regular Member

    Joined:
    Sep 16, 2009
    Messages:
    255
    Likes Received:
    196
    Occupation:
    my own boss
    Location:
    bhw
     
    Last edited: Aug 21, 2011
  8. daltarak

    daltarak Newbie

    Joined:
    Oct 4, 2009
    Messages:
    22
    Likes Received:
    3
    Setting EOL format to Windows will fix this. To do that open Notepad++, go Edit -> EOL Conversion and select "Windows Format". Now Scrapebox and other Windows applications will recognize your text's new lines.
     
  9. rytpillager

    rytpillager Regular Member

    Joined:
    Sep 16, 2009
    Messages:
    255
    Likes Received:
    196
    Occupation:
    my own boss
    Location:
    bhw
    eol conversion was already on windows format but i changed it to mac then changed it back to windows and it works, your a lifesaver man thanks alot :)
     
  10. daltarak

    daltarak Newbie

    Joined:
    Oct 4, 2009
    Messages:
    22
    Likes Received:
    3
    Your welcome, I'm glad I helped you :)