i checked out dynamic sideboxes. if you're familiar with it, i'm not using the javascript just calling the php script directly. the php script has to sit in the root folder of the store with on my site is larrysimprovpage.com/store.
when i call http://www.larrysimprovpage.com/stor...eatured_sb.php i'm directly calling the script i want. you see it puts a product on the page.
when i call http://www.larrysimprovpage.com/store/test_tony.php it works also. it's requiring the file above. all files are in the same folder as the include which is in the store root folder.
if i call this: http://larrysimprovpage.com/test/test_tony.php since i'm out of the folder nothing works. i know it's because all the zen car vars and functions are relative to the /store folder i have set up.
is there anything i can do to call this script outside of the /store folder and get the file that i'm calling to think it's being called from within the /store folder? i tried changin a bunch of the php $_SERVER vars. but that did nothing.
any ideas? here's the script i'm calling:
--------------------------------------------------------------------------------
<?php
/**
* single_sidebox.php used to display a Zen Cart sidebox on some external resource
*
* @package general
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: single_sidebox.php based on index.php 2942 2006-02-02 04:41:23Z drbyte $
*/
/**
* Load common library stuff
*/
require('includes/application_top_tmdev.php');
/**
* PLEASE ENTER THE NAME OF THE SIDEBOX YOU WANT TO CALL HERE:
*/
$sidebox_name = 'whats_new_tm_dev.php';
//which sidebox template to use:
$column_box_default='tpl_box_default_left.php';
$column_width = BOX_WIDTH_LEFT;
/**
* Load required functions and processing to generate the sidebox:
*/
$language_page_directory = DIR_WS_LANGUAGES . $_SESSION['language'] . '/';
$box_id = zen_get_box_id($sidebox_name);
require(DIR_WS_MODULES . 'sideboxes/' . $sidebox_name);
/*
if ( file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $sidebox_name) ) {
echo "yes";
require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $sidebox_name);
} else {
echo "no";
require(DIR_WS_MODULES . 'sideboxes/' . $sidebox_name);
}
*/
/**
* Load general code which runs before page closes
*/
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>



