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

[GET] G0g0l's Spintax Content Generator (nested spintax supported)

Discussion in 'PHP & Perl' started by Gogol, Feb 3, 2013.

  1. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,063
    Likes Received:
    2,872
    Gender:
    Male
    Hi all!
    I coded this script for generating spinned content for my work. I am sharing it with BHW people. Find the file attached to my post!

    Uploading Instruction:
    Just upload it on any server / you local host and call it directly. This script also support nested spintax ( e.g. {i am a {fool|cool} guy| i am an idiot}).


    VT:

    Code:
    https://www.virustotal.com/file/8fcbf62daf8515cc4fbbada2f74193577e633ddecfdc669199994f1ab0d99f19/analysis/1359903198/
    Response appreciated :)
     

    Attached Files:

    • Thanks Thanks x 15
  2. throw.pl

    throw.pl Newbie

    Joined:
    Jan 18, 2012
    Messages:
    32
    Likes Received:
    1
    Great code. Would you be so kind and explain me what do:
    - ?>
    and
    - ?R
    in (?>[^\{\}]+)|(?R) mean.
     
  3. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,063
    Likes Received:
    2,872
    Gender:
    Male
    Well im not the greatest when it comes to pattern matching. I will search for the logic when i have my pc handy :)

    Sent from my E310 using Tapatalk 2
     
  4. Honestjoe

    Honestjoe Registered Member

    Joined:
    Dec 26, 2010
    Messages:
    52
    Likes Received:
    14
    Home Page:
    thanks for this, i was kinda hoping it would create some spintax out of an article as well, but its a good and handy script none the less

    thanks mate =;0)
     
    • Thanks Thanks x 1
  5. demanz

    demanz Newbie

    Joined:
    Jan 20, 2013
    Messages:
    38
    Likes Received:
    16
    Occupation:
    Procrastinator
    Location:
    England
    This is gonna come in useful for a little project I have in my head.

    Cheers

    D
     
  6. rrocha80

    rrocha80 Junior Member

    Joined:
    Apr 19, 2013
    Messages:
    132
    Likes Received:
    24
    Thank you g0g0l by the code.
     
  7. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,063
    Likes Received:
    2,872
    Gender:
    Male
    Why don't you see it for yourself? Increasing Post count ehh?
     
    • Thanks Thanks x 1
  8. katika

    katika Junior Member

    Joined:
    Feb 15, 2008
    Messages:
    107
    Likes Received:
    111

    Tried you script, I tried something in it and problems,

    I tried this

    Code:
    This is text {1|2|3} with this <a href="http://google.com" title="Title of link" target="_blank">link</a>
    ?

    and I get this after submit
    Code:
    This is text {1|2|3} with this <a href=\"http://google.com\" title=\"Title of link\" target=\"_blank\">link</a>

    Is there any chance to fix those slashes \?

    Katika
     
  9. rrocha80

    rrocha80 Junior Member

    Joined:
    Apr 19, 2013
    Messages:
    132
    Likes Received:
    24
    Thanks g0g0l for share this script with us.
     
  10. Repulsor

    Repulsor Power Member

    Joined:
    Jun 11, 2013
    Messages:
    708
    Likes Received:
    267
    Location:
    PHP Scripting ;)
    G0g0l, looks like you are missing stripslashes. Or may be it is his server's magic quotes gpc turned on. :)

    Good share! :)
     
  11. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,063
    Likes Received:
    2,872
    Gender:
    Male
    Hi all
    Sorry for the late reply. Yes, it doesn't have stripslashes.. why not turn magic quotes off instead, because it can also do evil!


    If you can't disable it, then open the file and replace line number 55 and 56 with
    Let me know if it works.
     
    • Thanks Thanks x 1
  12. antagonist

    antagonist Registered Member

    Joined:
    Oct 15, 2012
    Messages:
    72
    Likes Received:
    26
    Great share.

    There is a lot of room for improvements though.