Zen Cart works with Xitami. However the install portion of the script fails with Xitami for the following reason:
(This is from PHP help file under 'header'.)
Note: HTTP/1.1 requires an absolute URI as argument to Location: including the scheme, hostname and absolute path, but some clients accept relative URIs. You can usually use $_SERVER['HTTP_HOST'], $_SERVER['PHP_SELF'] and dirname() to make an absolute URI from a relative one yourself:
<?php
/* Redirect to a different page in the current directory that was requested */
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'mypage.php';
header("Location: http://$host$uri/$extra");
exit;
?>
*************************
Basicaly Xitami is failing because the header_php.php files under \zc_install\includes\modules\pages\ all use relative paths vice absolute when using PHP's header command.
*************************
My fix is:
Using a grep program, replace all files containing
"header('location: "
(trailing space is important!)
in the directory
\zc_install\includes\modules\pages\
with
$host = $_SERVER['HTTP_HOST'];$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');header("Location: http://$host$uri/
Then you must change the closing ' character near the end of each line with a " character to match the opening character!
Maybe the Zen Cart team could make this a part of there next version?
http://www.emogic.com
Bookmarks