php - Checking existence of file in same folder -
i'm sure i'm missing obvious here. want include php file need check if exists first , every time run it, failure message. can see file there ftp application.
<? $man_file="/site/67/blog/612.php"; if (file_exists($man_file)){ include($man_file); } else { echo $man_file; } clearstatcache(); ?>
am missing something?
that did fred. i've never had before. post answer , i'll upvote , accept it. – richard young
posting comment "the" answer:
$man_file="/site/67/blog/612.php";
use full server path (an example):
$man_file="/var/usr/public/site/67/blog/612.php";
or relative one.
Comments
Post a Comment