BuddyFinton Posted February 4, 2004 Share Posted February 4, 2004 Hello, I am new to OSC. I was wondering, can you use OSC as a server side include? I would like to use some of the boxes within my pages to create more custom pages. Thanks for your help, Buddy Link to comment Share on other sites More sharing options...
Guest Posted February 4, 2004 Share Posted February 4, 2004 it is, just simple integration . . Link to comment Share on other sites More sharing options...
BuddyFinton Posted February 4, 2004 Author Share Posted February 4, 2004 Could you please elaborate a little more please :D . Which files for which boxes, etc. Link to comment Share on other sites More sharing options...
user99999999 Posted February 4, 2004 Share Posted February 4, 2004 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 More sharing options...
BuddyFinton Posted February 6, 2004 Author Share Posted February 6, 2004 Dave, Thanks for your help, I see what you mean about PHP. Though I'm a PHP programmer, I'm obviously new to OSC and wasn't real clear on how it worked. You have cleared it up. Thanks again, Buddy Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.