-
Rescue Director
help?
When I try to go to the desert section I get this:
<?php # this is the file redir.php, to gzip javascript and css
# set the request file name
$file=$_REQUEST['file'];
# Set Expires, cache the file on the browse
# Delete it if you don't want it
header("Expires:".gmdate("D, d M Y H:i:s", time()+15360000)."GMT");
header("Cache-Control: max-age=315360000");
# set the last modified time
$mtime = filemtime($file);
$gmt_mtime = gmdate('D, d M Y H:i:s', $mtime) . ' GMT';
header("Last-Modified:" . $gmt_mtime);
# output a mediatype header
switch ($_REQUEST['type']){
case 'css':
header("Content-type: text/css");
break;
case 'js' :
header("Content-type: text/javascript");
break;
case 'gif':
header("Content-type: image/gif");
break;
case 'jpg':
header("Content-type: image/jpeg");
break;
default:
header("Content-type: text/plain");
**
# GZIP the content
if(extension_loaded('zlib')){ob_start();ob_start(' ob_gzhandler');**
# echo the file's contents
echo implode('', file($file));
if(extension_loaded('zlib')){
ob_end_flush();
# set header the content's length;
# header("Content-Length: ".ob_get_length()); # (It doesn't work? )
ob_end_flush();
**
?>
Motorsports Safety Solutions
www.racesafely.com

Originally Posted by
Aflac
Whats the point of being stupid if you don't show it?
-
May 13th, 2008 14:18
# ADS
Circuit advertisement
|
|
Membership in the largest desert racing community has its advantages
- Participate in Forum Discussions
- Send and Receive Private Messages
- Maintain Public Photo Albums
- Access to Groups
- User Profile in our Social Network
- Increased Access to more Sub Forums
- Reduced Online Advertisements
Join our community today |
-
Administrator
Re: help?
Press CTRL + F5 to clear cache.
The error message is a know issue and taken care of.
I have been messing with a php to optimize bandwidth consumption on this site.
-
Rescue Director
Motorsports Safety Solutions
www.racesafely.com

Originally Posted by
Aflac
Whats the point of being stupid if you don't show it?