1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    195
    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:
    195
    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:
    195
    Occupation:
    my own boss
    Location:
    bhw
    hmm notepad++ method works but when i copy/paste in other programs or save file it is still not on a new line. maybe i am going about what i want to do wrong.

    I want to make variations in words with latin letters & I want to make every variation possible for each word. What I was trying to do was create a spun text for a word. for example the word eat spun it would be

    {é|ê|ë|è|É|e}{â|ä|à|å|a|À|å|á|Ä|Å|a}t

    So I figured I could make a file like this..

    {é|ê|ë|è|É|e}{â|ä|à|å|a|À|å|á|Ä|Å|a}t
    {é|ê|ë|è|É|e}{â|ä|à|å|a|À|å|á|Ä|Å|a}t
    {é|ê|ë|è|É|e}{â|ä|à|å|a|À|å|á|Ä|Å|a}t

    then I opened in scrapebox comment box and was going to spin it but i noticed I could only spin one line at a time.. so I switched to the format like this

    {é|ê|ë|è|É|e}{â|ä|à|å|a|À|å|á|Ä|Å|a}t {é|ê|ë|è|É|e}{â|ä|à|å|a|À|å|á|Ä|Å|a}t {é|ê|ë|è|É|e}{â|ä|à|å|a|À|å|á|Ä|Å|a}t

    that way when I spin it, everything will be spun at once, after that I can put each word on a seperate line and then run it through the scrapebox duplicate checker to get all the variations of the word anyone know an easy way of what im trying to do, still got rep to give.. have thanked the people who offered suggestions but my solution is still unsolved how should I do this..

    p.s after i make the variations i want to turn them into spun text {variation1|variation2|variation3|etc}

    edit: also i know {é|ê|ë|è|É|e}{â|ä|à|å|a|À|å|á|Ä|Å|a}t {é|ê|ë|è|É|e}{â|ä|à|å|a|À|å|á|Ä|Å|a}t {é|ê|ë|è|É|e}{â|ä|à|å|a|À|å|á|Ä|Å|a}t will already give the variations for the word eat but I want to spin my text in a way so i can use all the variations for the word eat and at the same time use other words like chew munch chow etc etc with there variations..
     
    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:
    195
    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 :)