<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>XPM3_FUNC::is_hostname()</title>
<style>
body, pre {
font-family: Verdana;
font-size: 10pt;
}
</style>
</head>
<body bgcolor="#f1f3f5" topmargin="10" leftmargin="14">
<pre>
XPM3_FUNC :: <i>boolean</i> <b>is_hostname</b> ( <i>string</i> hostname [, <i>boolean</i> have_address ] )
<hr>
Returns TRUE if is public hostname format, FALSE if not.
<i>boolean</i> have_address default value is: false
<i>Notice</i>: "localhost" it is not a public domain.
Example:
<table border="0" bgcolor="white">
<tr><td>
<pre><code>
// test if "mail.test.net" is hostane format and have IP address
echo XPM3_FUNC::is_hostname('mail.test.net', true) ? 'True' : 'False';
</code></pre>
</td></tr>
</table>
<hr color="white">
[ <a style="color: blue; text-decoration: none" href="mailto:hide@address.com?subject=Comment XPM3_FUNC is_hostname">Comments</a> ]
Last update: Tuesday, January 16, 2007
</pre>
</body>
</html>