# /usr/local/sbin/apxs -i -a -c mod_fileiri.c
/usr/local/share/apache2/build/libtool .....
/usr/local/share/apache2/build/libtool .....
/usr/local/share/apache2/build/libtool .....
cp .libs/mod_fileiri.so /usr/local/libexec/apache2/mod_fileiri.so
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/libexec/apache2
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
grep: /usr/local/libexec/apache2/mod_fileiri.la: No such file or directory
grep: /usr/local/libexec/apache2/mod_fileiri.la: No such file or directory
Warning! dlname not found in /usr/local/libexec/apache2/mod_fileiri.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/libexec/apache2/mod_fileiri.so
[activating module `fileiri' in /usr/local/etc/apache2/httpd.conf]
<?# http://bbs.giga.net.tw/demo/dl-test3.php
$filename='Peacock.jpg';$ims=preg_replace('/;.*$/','',$_SERVER['HTTP_IF_MODIFIED_SINCE']);$mod_time=gmdate('D, d M Y H:i:s',filemtime($filename)).' GMT';if($mod_time==$ims){header('HTTP/1.0 304 Not Modified');exit;}header('Cache-Control: max-age=60');header('Last-Modified: '.$mod_time);header('Content-Type: application/octet-stream');header('Content-Length: '.filesize($filename));header('Content-Transfer-Encoding: binary');header('Content-Disposition: attachment; filename="'.$filename.'"');$fp=fopen($filename,'rb');while(!feof($fp)){echofread($fp,1024);}fclose($fp);?>
<?# http://bbs.giga.net.tw/demo/dl-test2.php
$filename='Peacock.jpg';header('Last-Modified: '.gmdate('D, d M Y H:i:s',filemtime($filename)).' GMT');header('Content-Type: application/octet-stream');header('Content-Length: '.filesize($filename));header('Content-Transfer-Encoding: binary');header('Content-Disposition: attachment; filename="'.$filename.'"');$fp=fopen($filename,'rb');while(!feof($fp)){echofread($fp,1024);}fclose($fp);?>