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

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -