echo text if .php extentin exists in a folder using a php script
<p>im trying to make a php script that if a .php extention exists in a folder it says check mail, if no .php files exist no mail either one or the other results show up not both.</p>

<pre><code>&lt;?php
$directory = "http://server1.bioprotege-inc.net/roleplay_realm_online/contact_us_files/";
if (glob($directory . "*.php") != true) {
echo 'Check Mail:';
}
else {
echo 'No mail Today';
}
?&gt;
</code></pre>

<p>that what I got but it aint working it only shows the same result if there is a .php file in the folder or not</p>
