Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

warnings on Windows.
_WARNINGWarning These are warnings, less severe than errors.


_NOTICE (^) Notice
A notice is not an error but requires more attention than an
informational message. It is translated into a warning on
Windows.
_INFO (^) InformationInformational messages do not require that any special action
be taken.
_DEBUG (^) Debug These messages are of interest only to debugging tasks. They
are translated into warnings.^
<?
openlog("TEST", LOG_PID | LOG_CONS, LOG_USER);
syslog(LOG_INFO, "The log has been tested");
closelog();
?>
var_dump(expression,...)
The var_dump function reports all information about a given variable. Information is
printed directly to the browser. You may supply any number of variables separated by
commas. The output of the command is well formatted, including indention for cases
such as arrays containing other arrays. Arrays and objects are explored recursively.
<?
//create a directory object
$d = dir(".");
//dump info about it
var_dump($d)
?>
string zend_version()
Use zend_version to get the version of the Zend library.
<?
print(zend_version());
?>
Session Handling

Free download pdf