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.

syslog<br />

int syslog(int priority, string message)<br />

Sends an error message to the system logging facility. On Unix systems, this is syslog(3);<br />

on Windows NT, the messages are logged in the NT Event Log. The message is logged<br />

with the given priority, which is one of the following (listed in decreasing order of priority):<br />

If message contains the characters %m, they are replaced with the current error message, if<br />

any is set. Returns true if the logging succeeded and false if a failure occurred.<br />

system<br />

string system(string command[, int return])<br />

Executes command via the shell and returns the last line of output from the command’s<br />

result. If return is specified, it is set to the return status of the command .<br />

tan<br />

double tan(double value)<br />

Returns the arc tangent of value in radians.<br />

tempnam<br />

string tempnam(string path, string prefix)<br />

Generates and returns a unique filename in the directory path. Ifpath does not exist, the<br />

resulting temporary file may be located in the system’s temporary directory. The filename is<br />

prefixed with prefix. Returns a null string if the operation could not be performed.<br />

time<br />

LOG_EMERG Error has caused the system to be unstable<br />

LOG_ALERT Error notes a situation that requires immediate action<br />

LOG_CRIT Error is a critical condition<br />

LOG_ERR Error is a general error condition<br />

LOG_WARNING Message is a warning<br />

LOG_NOTICE Message is a normal, but significant, condition<br />

LOG_INFO Error is an informational message that requires no action<br />

LOG_DEBUG Error is for debugging only<br />

int time( )<br />

Returns the current Unix timestamp.<br />

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

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.<br />

time | 451

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

Saved successfully!

Ooh no, something went wrong!