parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

Вот:

Mechanic_e04 16.07.2002 16:31

В cgi-bin, там, где сам скрипт (кстати, с поддержкой xml), лежит один parser3.conf:
@auto[]
source/client charsets
$request:charset[windows-1251]
$response:charset[windows-1251]

$response:content-type[
        $.value[text/html]
        $.charset[$response:charset]
]

#$SQL.connect-string[mysql://user:pass@host/db]
#$SQL.connect-string[odbc://DSN=datasource^;UID=user^;PWD=password]
Так же в /usr/local/apache/parser/ лежит другой, как я понимаю, основной parser3.conf:
@auto[]
^if(def $env:HTTP_PARSER_ROOT_CONFIG){
    $configdir[$env:HTTP_PARSER_ROOT_CONFIG/..]
	$charsetsdir[$configdir/parser3.charsets]
	$sqldriversdir[$configdir/lib]
}{
	$charsetsdir[/usr/local/etc/parser3.charsets]
	$sqldriversdir[/usr/local/lib]
}

$CHARSETS[
    $.koi8-r[$charsetsdir/koi8-r.cfg]
#    $.windows-1250[$charsetsdir/windows-1250.cfg]
    $.windows-1251[$charsetsdir/windows-1251.cfg]
#    $.windows-1257[$charsetsdir/windows-1257.cfg]
]
#change your client libraries paths to 
those on your system
$SQL[
	$.drivers[^table::set{protocol	driver	client
mysql	$sqldriversdir/libparser3mysql.so	libmysqlclient.so
pgsql	$sqldriversdir/libparser3pgsql.so	libpq.so
oracle	$sqldriversdir/libparser3oracle.so	/u01/app/oracle/product/8.1.5/lib/libclntsh.so?ORACLE_HOME=/u01/app/oracle/product/8.1.5&ORA_NLS33=/u01/app/oracle/product/8.1.5/ocommon/nls/admin/data
}]
]

#for ^file:load[name;user-name] mime-type autodetection
$MIME-TYPES[^table::set{ext	mime-type
zip	application/zip
doc	application/msword
xls	application/vnd.ms-excel
pdf	application/pdf
ppt	application/powerpoint
rtf	application/rtf
gif	image/gif
jpg	image/jpeg
png	image/png
tif	image/tiff
html	text/html
htm	text/html
txt	text/plain
mts	application/metastream
mid	audio/midi
midi	audio/midi
mp3	audio/mpeg
ram	audio/x-pn-realaudio
rpm	audio/x-pn-realaudio-plugin
ra	audio/x-realaudio
wav	audio/x-wav
au	audio/basic
mpg	video/mpeg
avi	video/x-msvideo
mov	video/quicktime
swf	application/x-shockwave-flash
}]

$LIMITS[
	$.post_max_size(10*0x400*0x400)
]	

#$MAIL[
#	$.sendmail[your sendmail command goes here]
#	these are tried when no 'sendmail' specified:
#	    /usr/sbin/sendmail -t
#	    /usr/lib/sendmail -t
#]

@unhandled_exception[exception;stack]
$response:content-type[
        $.value[text/html]
        $.charset[$response:charset]
]

<title>UNHANDLED EXCEPTION (root)</title>
<body bgcolor=white>
<font color=black>
<pre>^untaint[html]{$exception.comment}</pre>
^if(def $exception.source){
<b>$exception.source</b><br>
<pre>^untaint[html]{$exception.file^($exception.lineno^)}</pre>
}
^if(def $exception.type){exception.type=$exception.type}
^if($stack){
	<hr>
	^stack.menu{
		<tt>$stack.name</tt> $stack.file^($stack.lineno^)<br>
	}
}