I am trying to see if a directory exists, but have not found anything that is working the way is I would like it to.
The PHP script is in the same directory as the folders I am checking for ( www ), but will not detect the folders unless I type out the full path.
(( I apologize for clumping the code together to save space ))
<html>
<title>Test Server</title>
<?php
$Var1 = "\Player\Rick"; $Var2="C:\wamp\www\Player\Rick";
# This Will Not Work
if ( is_dir($Var1) ){echo "Yes 1 <br>" ;}
else{echo "No 1 <br>";}
# This Will Work
if ( is_dir($Var2) ){echo "Yes 2 <br>" ;}
else{echo "No 2 <br>";}
?>
</html>