Works in all other browsers (of course) but is failing in IE?
Fails with errors
[COLOR=red]
SWFObject is undefined line 366 / char 1
SWFObject is undefined line 371 / char 1
Object Expected line 33 / char 1
And sometimes
[COLOR=red]Object Expected line 32 / char ???
Using this script in this way
[code=html]<script type=”text/javascript” src=”gzip.php?cache=true&exp=256&f0=js/swfobject.js&f1=js/lytebox.js&f2=js/jquery.js&f3=js/compress.js&f4=js/accordion.js”></script>
and here is the source php
[code=php]
$expiry = 3;
if($_GET[“exp”]) {
$expiry = $_GET[“exp”];
}
for($i=0; $i<100; $i++) {
$file = $_GET[“f$i”];
if($file) {
if(file_exists($file)) {
$ext = strtolower(substr($file, strrpos($file, “.”)));
if($ext == “.css” || $ext == “.js”) {
$content .= file_get_contents($file);
if(!$mytype) {
$mytype = $ext;
}
}
} else {
$content .= “// FILE NOT FOUND ‘$file’nn”;
}
} else {
break;
}
}
if($_GET[“cache”]) {
$expiresOffset = 3600 * 24 * $expiry;
} else {
$expiresOffset = 20;
}
if($mytype == “.css”) {
$type = “text/css”;
} elseif($mytype == “.js”) {
$type = “text/javascript”;
} else {
die();
}
header(“Content-type: $type; charset: UTF-8”);
header(“Content-Encoding: gzip”);
header(“Expires: ” . gmdate(“D, d M Y H:i:s”, time() + $expiresOffset) . ” GMT”);
$compressed = gzencode($content, 9, FORCE_GZIP);
echo $compressed;
ob_start(‘ob_gzhandler’);
header(“Content-type: $type; charset: UTF-8”);
echo $content;