Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Server Side Includes


BuddyFinton

Recommended Posts

Hi,

 

You wouldnt need SSI because PHP is much bettter!

 

You can use any of the /includes/boxes like this. Basically you put your content in this PHP/OSC wrapper. One note is you need transparent sesson ids.

 

<?php require('includes/application_top.php'); ?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

     <?php require(DIR_WS_BOXES . 'whats_new.php'); ?>

   </table></td>
 </tr>
 <tr>
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

     <?php require(DIR_WS_BOXES . 'shopping_cart.php'); ?>

   </table></td>
 </tr>
</table>
<!-- body_eof //-->
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

Also look at cookie_usage.php, includes/column_left.php and includes/column_right.php for some diferent ways to use things.

 

Dave...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...