PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

php_sapi_name> <php_ini_scanned_files
Last updated: Mon, 26 Nov 2007

view this page in

php_logo_guid

(PHP 4, PHP 5)

php_logo_guid — Gets the logo guid

说明

string php_logo_guid ( void )

This function returns the ID which can be used to display the PHP logo using the built-in image. Logo is displayed only if expose_php is On.

返回值

Returns PHPE9568F34-D428-11d2-A769-00AA001ACF42.

范例

Example#1 php_logo_guid() example

<?php

echo '<img src="' $_SERVER['PHP_SELF'] .
     
'?=' php_logo_guid() . '" alt="PHP Logo !" />';

?>



add a note add a note User Contributed Notes
php_logo_guid
t dot blum at student dot fontys dot nl
23-Dec-2006 05:35
Please be careful using this example. Printing $_SERVER['PHP_SELF'] without checking its content exposes a cross-site scripting vulnerability.
public at lemnet dot com
03-Aug-2006 03:52
If you for the function to create your own guid, it is uniqid()

See http://www.php.net/uniqid

php_sapi_name> <php_ini_scanned_files
Last updated: Mon, 26 Nov 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites