Code: Select all
if (is_dir("$link/index.php"))Code: Select all
$link = $_POST['link'];Code: Select all
<input id="textbarNewurl" type="text" name="link" size="30" maxlength="60" />The is_dir function is supposed to check whether there is a index page in the folder with the name of whatever the user has inputted. It does not do that??? What have I done wrong?
When I check in explorer, there IS a index.php file in that folder.
Thanks in purpose.