mhtrozzo Posted June 17, 2004 Share Posted June 17, 2004 Hi, I'm trying to customize my OSCommerce store using frames. What I'm trying to do is this: One frame going across the top with the header, and under that, a nav frame on the left and the main frame on the right. I created a file called top.php and want to include header.php in it. Here's what I have: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> </body> </html> Unfortunately, when I test the page (on my own server), I get this: Warning: main(DIR_WS_INCLUDESheader.php): failed to open stream: No such file or directory in E:\Programme\Apache Group\Apache2\htdocs\catalog\top.php on line 8 Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESheader.php' (include_path='.;c:\php4\pear') in E:\Programme\Apache Group\Apache2\htdocs\catalog\top.php on line 8 I'm new at OSC, although I'm not a newb with PHP...am I missing something? TIA, Mike Link to comment Share on other sites More sharing options...
spoot Posted June 17, 2004 Share Posted June 17, 2004 You need to add: require ("includes/application_top.php"); Put it right at the top, before you do anything else. That's the file that lets all the DIR_WS_INCLUDES path, and everything else, work. Link to comment Share on other sites More sharing options...
mhtrozzo Posted June 17, 2004 Author Share Posted June 17, 2004 spoot, Thanks a million...worked like a charm! :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.