Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Frameset problem


mhtrozzo

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...