just wondering if anyone may know how to include the attached file into the tpl_main_page.php file without url_include.
I have tried
PHP Code:
<?php
define("PHP_ROOT", "/home/perfo902/public_html/draft/");
include_once(PHP_ROOT."banners_all_insert.php");
?>
and
<?php
define("PHP_ROOT", "/home/perfo902/public_html/draft/");
include(PHP_ROOT."banners_all_insert.php");
?>
and
<?php require_once('/home/perfo902/public_html/draft/banners_all_insert.php'); ?>
and
<?php
define('__ROOT__', dirname(dirname(__FILE__)));
require_once(__ROOT__.'/config.php);
?>
and
require ("path/to/zencart/banners_all_insert.php'");
and get the error"PHP Fatal error: Cannot redeclare securityPatchSanitizePostVariableId() (previously declared in /home/perfo902/public_html/draft/includes/extra_configures/security_patch_v138_20080919.php:33) in /home/perfo902/public_html/draft/includes/extra_configures/security_patch_v138_20080919.php on line 54
if I remove security_patch_v138_20080919.php I get th error
PHP Fatal error: Cannot redeclare class base in /home/perfo902/public_html/draft/includes/classes/class.base.php on line 17
I am on a site where I uploaded the zip file and used cannel file manager to unzipd it; which causes additional line spaces on every php file; although this does not normally cause a problem and there are no errors before I try to include this file, i will not do it again.
Bookmarks