Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : PHP Options&Information : phpcredits

phpcredits

Prints out the credits for PHP (PHP 4, PHP 5)
bool phpcredits ( [int flag] )

Example 1852. Prints the general credits

<?php
phpcredits
(CREDITS_GENERAL);
?>

Example 1853. Prints the core developers and the documentation group

<?php
phpcredits
(CREDITS_GROUP + CREDITS_DOCS + CREDITS_FULLPAGE);
?>

Example 1854. Printing all the credits

<html>
<head>
 <title>My credits page</title>
</head>
<body>
<?php
// some code of your own
phpcredits(CREDITS_ALL - CREDITS_FULLPAGE);
// some more code
?>
</body>
</html>

Code Examples / Notes » phpcredits

05-sep-2002 03:43

Note that each individual Credit page includes currently include a <style> CSS stylesheet, and a centered <h1> title that displays "PHP 4 Credits", before the credits table(s).
So these elements will be repeated on the page if you use successively several phpcredits() calls with distinct flag values.
The embedded stylesheet may corrupt your page layout if you have another stylesheet generated before the content generated by this call. You may need to use an ob_created buffer to capture the ob_contents() after calling this function, in order to eliminate the <h1>title and the <style> CSS stylesheet.
Also, the generated HTML code only complies with HTML 4.01 or lower, but not as XHTML 1.0 (it uses deprecated attributes, and don't close empty HTML tags explicitly with />).
Note that there's no way for now to isolate the credits for a specific extension name (with CREDITS_MODULES) or for a specific SAPI module name (with CREDITS_SAPI).
The GENERAL_CREDITS displays also 2 tables: the first one is "Language Design & Concept", the second one is "PHP4 Authors Contribution" for the main PHP core subprojects (Zend Scripting Language Engine, Extension Module API, Unix Build and Modularization, Win32 Port, SAPI Abstraction Layer).


jasper

"Also, the generated HTML code only complies with HTML 4.01 or lower, but not as XHTML 1.0 (it uses deprecated attributes, and don't close empty HTML tags explicitly with />)."
That's because it's generated HTML code, like you said, not XHTML code. And you don't close empty HTML tags explicitly with />, only empty XHTML tags.


Change Language


Follow Navioo On Twitter
assert_options
assert
dl
extension_loaded
get_cfg_var
get_current_user
get_defined_constants
get_extension_funcs
get_include_path
get_included_files
get_loaded_extensions
get_magic_quotes_gpc
get_magic_quotes_runtime
get_required_files
getenv
getlastmod
getmygid
getmyinode
getmypid
getmyuid
getopt
getrusage
ini_alter
ini_get_all
ini_get
ini_restore
ini_set
main
memory_get_peak_usage
memory_get_usage
php_ini_scanned_files
php_logo_guid
php_sapi_name
php_uname
phpcredits
phpinfo
phpversion
putenv
restore_include_path
set_include_path
set_magic_quotes_runtime
set_time_limit
sys_get_temp_dir
version_compare
zend_logo_guid
zend_thread_id
zend_version
eXTReMe Tracker