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.

checkdate<br />

bool checkdate(int month, int day, int year)<br />

Returns true if the month, date, and year as given in the parameters are valid, and false if<br />

not. A date is considered valid if the year falls between 1 and 32767 inclusive, the month is<br />

between 1 and 12 inclusive, and the day is within the number of days the specified month<br />

has.<br />

checkdnsrr<br />

int checkdnsrr(string host[, string type])<br />

Searches DNS records for a host having the given type. Returns true if any records are<br />

found, and false if none are found. The host type can take any of the following values (if<br />

no value is specified, MX is the default):<br />

chgrp<br />

bool chgrp(string path, mixed group)<br />

Changes the group for the file path to group; <strong>PHP</strong> must have appropriate privileges for this<br />

function to work. Returns true if the change was successful and false if not.<br />

chmod<br />

bool chmod(string path, int mode)<br />

Attempts to change the permissions of path to mode. mode is expected to be an octal number,<br />

such as 0755. An integer value such as 755 or a string value such as “u+x” will not work as<br />

expected. Returns true if the operation was successful and false if not.<br />

chop<br />

A IP address<br />

MX (default) Mail exchanger<br />

NS Name server<br />

SOA Start of authority<br />

PTR Pointer to information<br />

CNAME Canonical name<br />

ANY Any of the above<br />

string chop(string string[, string characters])<br />

This is an alias for ltrim( ).<br />

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

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

chop | 387

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

Saved successfully!

Ooh no, something went wrong!