PHP quine

a quine will generate the exact same program as it self, one easy way to create a quine in PHP is by read itself:

readfile(__FILE__);

with this code, any PHP script can be a quine and does not need any human's help. This will be something useful for the PHP Polymorphic Bacteria to keep create itself.
Here is another interesting way to create a quine, but it need the user to create the "DNA", so it can't replicate itself the first script is written.


Comments

Anonymous's picture

Hello there web

Hello there web programmer.

Just wow, did you even bother to read past the first line of the article you link to? Quines cannot NOT TAKE ANY INPUT, it say so in the second line of the article.

This blog post is EXPERT PROGRAMMER quality.

Mgccl's picture

..Mine is a variation of

..Mine is a variation of normal quines, it's a input enabled quine, it's quine 2.0 with new features and less fat...
thx for telling me that :)
I only read the non-prime lines of most articles, when the line count is n, I get around \frac{n-\frac{n}{ln(n)}}{n}=1-\frac{1}{ln(n)} of the article absorbed.
Which is amazingly good :)

Anonymous's picture

Sepples

You have angered an EXPERT PROGRAMMER

Mgccl's picture

who are you referring to?

who are you referring to? yourself? and what's Sepples?

Anonymous's picture

The international community

The international community EXPERT PROGRAMMERS1 that took issue with your ENTERPRISE QUALITY quine is best ignored until you can demonstrate you have reached satori.

  1. 1. lol internet
Mgccl's picture

satori is too far away. This

satori is too far away.
This post is generating some amount of views.
I feel so smart...

Anonymous's picture

SICP

i think SICP is a pretty cool guy. eh creates spells and doesn't afraid of anything.

Mgccl's picture

WTF... everyone is just

WTF... everyone is just bombing this post with random comments.

Anonymous's picture

Look at it this way. On most

Look at it this way.

On most browsers, you can bring up your browsing history by pressing Control-H. (No, this is not going to become a discussion of werecows.) On Firefox, this brings up a sidebar that shows up on the left side of the window. If you put your mouse over the edge of the sidebar, the cursor will turn into a different kind of arrow. By clicking and dragging it, you can move the edge of the sidebar back and forth. You are, to put it another way, manipulating the border between the normal window and the history window. By moving the mouse, you can increase the portion of the window devoted to either part. In a more extreme view of this situation, you're increasing or decreasing the amount of existence the sidebar has.

Now, let's apply this idea to something more abstract. Look out your window. If you don't live in a highly urbanized area, you should be able to see the horizon. Think of this as the border between the land and the sky. The land and sky are obviously distinguishable thanks to this boundary. Now, if you were to "drag" the sash between the sky and the land, or to manipulate the border between land and sky, you would end up causing the sky to become larger and the land to become smaller, or vice versa. An effect of this might be to cause something that was just on the ground to suddenly be hundreds of feet in the air. Truly a frightening situation to be in. So, look at it this way - manipulating the border between two physical things shifts whatever balance there is in the interaction between those things. Alternatively, by manipulating the border between two things, you can change the manner in which they exist.

Still, this isn't *that* abstract, since it's still dealing with real things in the real world. Many believe that in this world, there are those things that are true, and those that obviously aren't. This divides reality into two extremes: truth and falsehood. But, since we have two extremes, logically one can imagine a boundary between those two extremes - the border between truth and lies. If one were to manipulate this border, suddenly things that were pure fantasy (flying pigs, for the sake of argument) have become reality - or things from reality have ceased to exist. This is how Yukari is said to have invaded the moon - by manipulating the border between truth and lies, as applied to the reflection of the moon on a pond, she was able to make the reflection of the moon into a manifestation of the actual moon, and so send her youkai army onto it. This is what's truly amazing about Yukari's power - the ability to manipulate the border between completely abstract concepts allows her to fundamentally change reality as we know it (at least in terms of two abstract concepts).

Anonymous's picture

Wow.....

This is the dumbest thing I've read in a long, long time. May God have mercy on your soul.

Mgccl's picture

I built so much Karma for

I built so much Karma for this...

Anonymous's picture

I certainly hope you are

I certainly hope you are trolling.

Mgccl's picture

Nope, I'm not. I made a

Nope, I'm not.
I made a mistake, now I know it. so I can't possibly make the same mistake again.

Anonymous's picture

I do not think this

I do not think this <<quine>> is sufficiently ,,ENTERPRISE``. A truly <strong><em>EXPERT PROGRAMMER</em></strong> would code his QUINE in a real language, like SICP, K&R, or EnterpriseJavaBeans(c) Sepples 2.0 Beta. You have angered the EXPERT PRGRAMMER..,,

Mgccl's picture

experts programmers must be

experts programmers must be easily angered bunch of people...

Anonymous's picture

loeb :: Functor f => f (f a

loeb :: Functor f => f (f a -> a) -> f a
loeb f = fmap ($ loeb f) f

Anonymous's picture

SII(SII)

SII(SII) Cool glasses

Anonymous's picture

(No subject)

                       //`'''```,
             o        // LISP   `.,
       ,....OOo.   .c;.',,,.'``.,,.`
    .'      ____.,'.//
   / _____  \___/.'
  | / ||  \\---\|
  ||  ||   \\  ||
  co  co    co co

Anonymous's picture

Yes I am fucqing easily

Yes I am fucqing easily angered and I'm going to hax your anus until it looks like Leah Culver's acne-scarred cleft labia, Mr. web programmer.

EVERY THREAD WILL BE TURNED INTO A SHITFEST

NO EXCEPTIONS

FINAL DESTINATION

Mgccl's picture

Well look who is here, the

Well look who is here, the kind of people who think they have power over other people because they can abuse their powers and believe no one in the world can do anything to them.
Sorry, if you hax my site, it only shows that you have no life and also no respect and using your life's energy to hax someone else instead of using the time to help saving world.

Anonymous's picture

'-._

    '-._                  ___.....___
        `.__           ,-'        ,-.`-,         HAVE YOU HAXED
            `''-------'          ( p )  `._      LEAH CULVER'S 
                                  `-'      \     ANUS TODAY?
                                            \
                                  .         \
                                   \---..,--'
       ................._           --...--,
                         `-.._         _.-'
                              `'-----''

Mgccl's picture

haha, cute

haha, cute

Anonymous's picture

I haven't said anything

I haven't said anything about haxing your website. My powers only concern anii haxing.

Besides, I have better things to do, such as reposting heron stories to keep my pots and pans from being in a mess.

Mgccl's picture

I wonder how is your anii

I wonder how is your anii haxing power...
Please demonstrate.

Anonymous's picture

__         

__              へ
 i. ツ              ゝ_!
 !_l     _r' ⌒ヽ    ノ ,/
 l ゝ、  ゙T ̄了:) , ri' ' ,/
  ゙ゝ、 `)"ー、._,r:'"`  l、,/
    ヾ、     l :  i ,/
     Y    l :  l'
      !     l : ,l   , '''  ̄ `_ 、
      l、   l : l, /    ((.´ヽ'.ヽ
      /~ ニ口ニ{/      ‐   .- ヽ
     .!   ヽノ ゙!   ___'`=''__.l
      !   i  ゙! -<_______,`ゝ ___________
       .!    i. ゙i  〈.  -=・=- -=・=-}-、 /
      !   i  !.  }      ,ハ   .!f/ EXPERT PROGRAMMER
        i   l  !ヽ._ ノ    ,‘,,-,,',  .!ノ' \___________

Anonymous's picture

HAVE YOU READ YOUR SICP

HAVE YOU READ YOUR SICP TODAY??????????????

Anonymous's picture

hi every1 im new!!!!!!!

hi every1 im new!!!!!!! *holds up spork* my name is katy but u can call me t3h PeNgU1N oF d00m!!!!!!!! lol...as u can see im very random!!!! thats why i came here, 2 meet random ppl like me ^_^... im 13 years old (im mature 4 my age tho!!) i like 2 watch invader zim w/ my girlfreind (im bi if u dont like it deal w/it) its our favorite tv show!!! bcuz its SOOOO random!!!! shes random 2 of course but i want 2 meet more random ppl =) like they say the more the merrier!!!! lol...neways i hope 2 make alot of freinds here so give me lots of commentses!!!!

DOOOOOMMMM!!!!!!!!!!!!!!!! <--- me bein random again ^_^ hehe...toodles!!!!!

love and waffles,
*~t3h PeNgU1N oF d00m~*

Mgccl's picture

WTF!

WTF!

Anonymous's picture

         

              ||
                 ||
                 ||
              ____    ||
          ,/´    `丶、 ||
       /        `爪
      /        , ',/ハヽ
      !     i   l i//、 |.|ヽ
      | l   i l   ,' // \! ',
      | ! l  l | /´\!,!-‐'´ ̄`ヽ-、
      | ! ! , | /   ヽ ̄`ー‐--! !
      | ! ! ! !|     ',.      ',. ',
       |.,l | l l,/        ',     l ',
      リ | l|.l|/      _,.ゝ    / .,!
       |ル' \ __,. =‐ ,ゞ ,   , /=,'´
            `!   '´l /,' , ノ /,. '!
           /   . / ´ iヽヾ〈´ |
             /    ,'    ! 丶 ! l
         /    .,'     ',   l. |
       ,/´`ー-、/    ',   !_!_
       l     `!     '  ,|/
          !___ __ _/     ;   ;. l'
      / , |   l      '   i ',
     / ./ レi.| l i、!          ',. ',
    ,/  /   |ル'iノ         ',.  ',
    /  /                ',  ヽ
  /  /   ,             ',   ヽ
  \_/    ;              ',.  ',
    !     !            _ __!   l
    'ー‐--‐L_ _ __ _,.-'´  ヾ、_/`'
             l    l|   l
            |     !|   !
          |    | |  |
          |    ! |   |
          l   ‐'、 ,!  `ヽ
          |    l'     ,ノ
          !   /    /
             |     !   /
             |    ',  ,/
          '、  /-イ
           `ー'

Anonymous's picture

Reprise

*
"GRUNNUR"
;

Anonymous's picture

"GRUNNUR"

"GRUNNUR"

Anonymous's picture

THE FORCED INDENTATION OF

THE FORCED INDENTATION OF CODE

Anonymous's picture

That's a quine...

In much the same way that you are an expert in copulation.

Anonymous's picture

I can insure you I am no anus!

I can insure you I am no anus!

Anonymous's picture

You're an anus!

You're an anus!

Anonymous's picture

Congratulations on you're

Congratulations on you're being featured on Reddit!
http://www.reddit.com/r/programming/comments/9cd4v/web_programmers_give_us_professional_software/

Anonymous's picture

Top google search result for

Top google search result for "GRUNNUR"

Post new comment

  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <span> <fn>
  • Lines and paragraphs break automatically.
  • Use [fn]...[/fn] (or <fn>...</fn>) to insert automatically numbered footnotes.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].
  • Mathematical equations and graphs can be added between [tex] and [/tex], [graph] and [/graph] tags.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
  _           ____     ____            ____ 
| | _ __ | _ \ / ___| __ __ / ___|
| | | '_ \ | | | | | | _ \ \ / / | | _
| | | | | | | |_| | | |_| | \ V / | |_| |
|_| |_| |_| |____/ \____| \_/ \____|
Enter the code depicted in ASCII art style.
Honey Pot that kill bots