include, include_once, require and require_once are not functions, they are statements, that is why you should not use ().

Also, consider this from


// won't work
if (include('vars.php') == TRUE) {
    echo 'OK';

// works
if ((include 'vars.php') == TRUE) {
    echo 'OK';

  • 1
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags

Related Questions