Im having a tough time accessing variables from my own external file.
I gave this file:
?php include_once('/exercise_names.php'); ?
Which contains the following:
?php //Exercise Names $memory01 = '1'; $memory02 = '2'; $memory03 = '3'; $memory04 = '4'; ?
I cannot get the page to render the names. I keep getting the following errors:
Notice: Undefined variable: memory01 in eval() (line 4 of /home/webapps/drupal/releases/modules/php/php.module(80) : eval()'d code).
Basically its telling me it cant find the required variables, but they are in the file. For some reason it cannot read the included file.