05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

phpinfo<br />

void phpinfo([int what])<br />

Outputs a whole bunch of information about the state of the current <strong>PHP</strong> environment,<br />

including loaded extensions, compilation options, version, server information, and so on. If<br />

speficied, what can limit the output to specific pieces of information; what may contain<br />

several options ORed together. The possible values of what are:<br />

phpversion<br />

string phpversion( )<br />

Returns the version of the currently running <strong>PHP</strong> parser.<br />

pi<br />

double pi( )<br />

Returns an approximate value of pi.<br />

popen<br />

CREDITS_GROUP A list of the core <strong>PHP</strong> developers.<br />

CREDITS_DOCS Information about the documentation team.<br />

CREDITS_MODULES A list of the extension modules currently loaded and the<br />

authors for each.<br />

CREDITS_SAPI A list of the server API modules and the authors for each.<br />

CREDITS_FULLPAGE Indicates that the credits should be returned as a full HTML<br />

page, rather than just a fragment of HTML code. Must be<br />

used in conjunction with one or more other options; e.g.,<br />

phpcredits(CREDITS_MODULES | CREDITS_FULLPAGE).<br />

INFO_ALL (default) All information<br />

INFO_GENERAL General information about <strong>PHP</strong><br />

INFO_CREDITS Credits for <strong>PHP</strong>, including the authors<br />

INFO_CONFIGURATION Configuration and compilation options<br />

INFO_MODULES Currently loaded extensions<br />

INFO_ENVIRONMENT Information about the <strong>PHP</strong> environment<br />

INFO_VARIABLES A list of the current variables and their values<br />

INFO_LICENSE The <strong>PHP</strong> license<br />

int popen(string command, string mode)<br />

Opens a pipe to a process executed by running command on the shell.<br />

432 | Appendix A: Function Reference<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!