Ben bu dokümanı kullanarak minify ile çalıştı:
http://code.google.com/p/minify/wiki/CustomServer
ve ben çözemezse sorun var:
<?php
set_include_path('/srv/home/xyz/public_html/COMPONENTS/_php/minify/min/lib' .
PATH_SEPARATOR . get_include_path());
require 'Minify.php';
require 'Minify/Cache/File.php';
Minify::setCache(new Minify_Cache_File());
//no error - everything is ok... until now
$options = array(
'files' => array('/srv/home/xyz/public_html/test1.js',
'/srv/home/xyz/public_html/test2.js', $src),
'maxAge' => 86400
);
Minify::serve('Files', $options);
//--> HTTP/1.0 400 Bad Request
?>
Ben denedim:
'files' => array('test1.js', 'test2.js', $src),
'files' => array('//test1.js', '//test2.js', $src),
'files' => array('/srv/home/xyz/public_html/test1.js',
'/srv/home/xyz/public_html/test2.js', $src),
I also put those files in diffrent places without positive result. Question is: what's going on? and why HTTP Request is there?