think-digitally Posted June 20, 2008 Share Posted June 20, 2008 Hi I am using a javascript preloader on my website. It loads all the page and then displays it. The problem I have is that the <?php require_once 'header2.php'; ?> is above the javascript loading code. I have tried moving the code lower in the page, but it shows errors Does anyone know a way I can fix this? Thanks Link to comment https://forums.phpfreaks.com/topic/111171-simple-help/ Share on other sites More sharing options...
lemmin Posted June 20, 2008 Share Posted June 20, 2008 Can you be a little bit more specific as to what kind of javascript and where everything goes? A little more code would help. Link to comment https://forums.phpfreaks.com/topic/111171-simple-help/#findComment-570606 Share on other sites More sharing options...
GreenUser Posted June 20, 2008 Share Posted June 20, 2008 <?php require_once('header2.php'); ?> Try that. Link to comment https://forums.phpfreaks.com/topic/111171-simple-help/#findComment-570613 Share on other sites More sharing options...
lemmin Posted June 20, 2008 Share Posted June 20, 2008 "Because include() is a special language construct, parentheses are not needed around its argument." http://www.php.net/manual/en/function.include.php I believe this is the same for require_once as well as the other include methods (or constructs ). Link to comment https://forums.phpfreaks.com/topic/111171-simple-help/#findComment-570634 Share on other sites More sharing options...
MasterACE14 Posted June 20, 2008 Share Posted June 20, 2008 try just this <?php require('header2.php'); ?> Link to comment https://forums.phpfreaks.com/topic/111171-simple-help/#findComment-570649 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.