05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

getenv<br />

string getenv(string name)<br />

Returns the value of the environment variable name. Ifname does not exist, getenv( ) returns<br />

false.<br />

gethostbyaddr<br />

string gethostbyaddr(string address)<br />

Returns the hostname of the machine with the IP address address. If no such address can<br />

be found, or if address doesn’t resolve to a hostname, address is returned.<br />

gethostbyname<br />

string gethostbyname(string host)<br />

Returns the IP address for host. If no such host exists, host is returned.<br />

gethostbynamel<br />

array gethostbynamel(string host)<br />

Returns an array of IP addresses for host. If no such host exists, returns false.<br />

getlastmod<br />

int getlastmod( )<br />

Returns the Unix timestamp value for the last-modification date of the file containing the<br />

current script. If an error occurs while retrieving the information, returns false.<br />

getmxrr<br />

int getmxrr(string host, array hosts[, array weights])<br />

Searches DNS for all Mail Exchanger (MX) records for host. The results are put into the<br />

array hosts. If given, the weights for each MX record are put into weights. Returns true if<br />

any records are found and false if none are found.<br />

getmyinode<br />

int getmyinode( )<br />

Returns the inode value of the file containing the current script. If an error occurs, returns<br />

false.<br />

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

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

getmyinode | 409

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

Saved successfully!

Ooh no, something went wrong!