• I created a PHP file called customsearch.php and want to add a PHP line to call the file.

    What would the line be?

    I tried,
    <?php get_customsearch(); ?>

    Any help would be great, Thanks!

Viewing 1 replies (of 1 total)
  • You would want PHP’s require() function, that is:

    <?php require_once('root/files/path-to-file.php'); ?>

    The only difference between require and require_once is that require does not check to see if the file has been previously loaded. Require_once, as you might guess, can only be loaded once.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Call To File’ is closed to new replies.