phpinfo() - How does it generates PHP Logo

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Prince of Code

    #1

    phpinfo() - How does it generates PHP Logo

    Hi All,

    I wonder how the function phpinfo() draws the image of phplogo as an
    Image. When I viewed source, Its more strange It shows like this
    <img border="0"
    src="/test.php?=PHPE9 568F34-D428-11d2-A769-00AA001ACF42" alt="PHP Logo"
    />

    What does this means ?

    Anybody out there to solve my curiosity ?


    Thx in Advance

    Regards

    Prince

  • Chung Leong

    #2
    Re: phpinfo() - How does it generates PHP Logo

    Prince of Code wrote:
    Hi All,
    >
    I wonder how the function phpinfo() draws the image of phplogo as an
    Image. When I viewed source, Its more strange It shows like this
    <img border="0"
    src="/test.php?=PHPE9 568F34-D428-11d2-A769-00AA001ACF42" alt="PHP Logo"
    />
    >
    What does this means ?
    >
    Anybody out there to solve my curiosity ?
    The PHP and Zend logos are compiled into the interpreter. When it sees
    the special ids it outputs the image.

    You'd find them in main/logos.h in the source package. The static char
    arrays are binary data of gif files. Besides the PHP and Zend logos,
    there's also a picture of a dog.

    Comment

    • ZeldorBlat

      #3
      Re: phpinfo() - How does it generates PHP Logo


      Chung Leong wrote:
      Prince of Code wrote:
      Hi All,

      I wonder how the function phpinfo() draws the image of phplogo as an
      Image. When I viewed source, Its more strange It shows like this
      <img border="0"
      src="/test.php?=PHPE9 568F34-D428-11d2-A769-00AA001ACF42" alt="PHP Logo"
      />

      What does this means ?

      Anybody out there to solve my curiosity ?
      >
      The PHP and Zend logos are compiled into the interpreter. When it sees
      the special ids it outputs the image.
      >
      You'd find them in main/logos.h in the source package. The static char
      arrays are binary data of gif files. Besides the PHP and Zend logos,
      there's also a picture of a dog.
      You can get to those easily using php_logo_guid() and zend_logo_guid( ):
      <http://www.php.net/php_logo_guid>
      <http://www.php.net/zend_logo_guid>

      Comment

      • Prince of Code

        #4
        Re: phpinfo() - How does it generates PHP Logo

        Chung Leong wrote:
        Prince of Code wrote:
        Hi All,

        I wonder how the function phpinfo() draws the image of phplogo as an
        Image. When I viewed source, Its more strange It shows like this
        <img border="0"
        src="/test.php?=PHPE9 568F34-D428-11d2-A769-00AA001ACF42" alt="PHP Logo"
        />

        What does this means ?

        Anybody out there to solve my curiosity ?
        >
        The PHP and Zend logos are compiled into the interpreter. When it sees
        the special ids it outputs the image.
        >
        You'd find them in main/logos.h in the source package. The static char
        arrays are binary data of gif files. Besides the PHP and Zend logos,
        there's also a picture of a dog.
        Amazing to hear. Thx for this great sharing.

        Regards
        Prince

        Comment

        Working...