How to include a file
-
Hi,
I have a php file that contains various php functions and variables.
How do I include this file in the “PHP Everywhere” editor text field ?
In normal php you would just add this line…
require_once(‘functions_date.php’);I have tried this in the “PHP Everywhere” text field but it did not work.
I then tried…
require_once(“functions_date.php”);
Then tried..
require_once((“functions_date.php”));
in case it was needing an extra parenthesis as I noticed the example echo statements require them but still did not work.How can I include this file so I can use this code.
Thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to include a file’ is closed to new replies.