I am trying to include a foo.php in page.tpl.php in place of the slider items. foo.php dynamically generates 4 slider items from a mysql DB with the required divs. Is this possible? My frontpage breaks whenever I try this. See example code below:

page.tpl.php

require_once('foo.php');

foo.php

connects to a MySQL DB and echos 4 items along with the required divs.

Any thoughts?

Thanks

Comments

cabenave’s picture

Please disregard this post. I was able to fix the problem. It was related to openbase_dir restrictions.