|
Answer» I said IF it works, not try and MAKE it work (lol), but it gives me Warnings anyways:
if(!include("docs/function.list.php")) { include("../docs/function.list.php"); }Don't know too much about PHP, but LOOKS to me as THOUGH you're just TRYING to loop docs/function.list.php until it works, and obviously, that's erroneous in PHP programming.use file_exists() rather then using include the first time:
CODE: [Select] if(file_exists("docs/function.list.php")) {
include("docs/function.list.php"); } else { include("../docs/function.list.php");
}
Yeah I found that out 5 minutes after this thread. . . .
|