473,410 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

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?=PHPE9568F34-D428-11d2-A769-00AA001ACF42" alt="PHP Logo"
/>

What does this means ?

Anybody out there to solve my curiosity ?
Thx in Advance

Regards

Prince

Nov 8 '06 #1
3 3880
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?=PHPE9568F34-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.

Nov 8 '06 #2

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?=PHPE9568F34-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>

Nov 8 '06 #3
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?=PHPE9568F34-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

Nov 9 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Shawn Wilson | last post by:
Hi, My host keeps messing things up and not telling me. I am trying to write a cron job that will test to make sure the "unusual" functions I use work and, if not, email me. I want it to send...
2
by: ChronoFish | last post by:
Hello, From my understanding, setting the ini value "html_errors" is supposed to force the output from phpinfo to be either plain text or HTML. I have setup two files. One is executes as CGI,...
4
by: lawrence | last post by:
I wanted to use the AddType directive in an .htaccess file. So I used phpinfo() to get the path info for PHP. I found this line: PATH /bin:/usr/bin So I tried this, but it did not work:...
2
by: John Drako | last post by:
I just updated my server to apache 1.3.33 and php 5.0.3 from apache 1.3.31 and php 4.3.9. It's running RedHat and MySQL 4.0.20. All the code that I created myself in PHP is working as it should...
1
by: Joel de Guzman | last post by:
Hello, Boost (www.boost.org) is an open, collaborative effort that includes thousands of programmers from the C++ community at large. Boost is hoping to retire the existing logo...
4
by: Xah Lee | last post by:
A Lambda Logo Tour (and why LISP languages using λ as logo should not be looked upon kindly) Xah Lee, 2002-02 Dear lispers, The lambda character λ, always struck a awe in me, as with...
6
by: Brian Huether | last post by:
When I run phpinfo, it diaplays the same thing regardless of changes I make to php.ini. For instance, php.ini shows register globals on max upload filesize of 16M. etc, etc. But phpinfo always...
4
by: Ronald Raygun | last post by:
I have just discovered that the value reported for $_SERVER by phpinfo is different from the value I obtain when I run the following: <?php echo $_SERVER ?> My natural assumption is to assume...
7
by: eholz1 | last post by:
Hello All, I have reviewed various posts in regard to Oracle and PHP. I am running Apache 2.0.59, on Windows XP, with PHP 5.2. I would like to connect using PHP to a remote oracle db (ver. 7)...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.