parser

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

 

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

Ну вы, блин, даете… ;)

Dep 13.07.2002 14:07

Если ты используешь httpd.conf, то без SetEnv:
# --- httpd.conf ---
# без SetEnv
    HTTP_PARSER_ROOT_CONFIG d:/web/parser3.root.conf
    HTTP_PARSER_SITE_CONFIG d:/web/parser3.site.conf
#
# с точки зрения методологии, взял бы другое
# расширение для парсимых файлов
# AddHandler parsed-html .phtml
# Action parsed-html "/cgi-bin/parser3.exe"
    AddHandler parsed-html .pml
    Action parsed-html /cgi-bin/parser3.exe
# --- /httpd.conf ---
Если ты используешь .htaccess, то с SetEnv:
# --- .htaccess ---
    SetEnv HTTP_PARSER_ROOT_CONFIG "d:/web/parser3.root.conf"
    SetEnv HTTP_PARSER_SITE_CONFIG "d:/web/parser3.site.conf"
    AddHandler parsed-html .pml
    Action parsed-html /cgi-bin/parser3.exe
# --- /.htaccess ---
Далее.
Who is 'parser3.bat'? Ты хотел сказать parser3.phtml?
Сделаем из него test.pml:
# --- test.pml ---
^echo[bebebe]
#
@echo[string]
    ^switch[$string]{
        ^case[bebebe]{<p>Hello, world</p>}
        ^case[DEFAULT]{<p>Hello, <b>dUmbASs</b></p>}
    }
# --- /test.pml ---
И вот еще.
Проверь в httpd.conf (если ты под Win32):
# --- httpd.conf ---
# MaxRequestsPerChild: the number of requests each child process is
# allowed to process before the child dies.  The child will exit so
# as to avoid problems after prolonged use when Apache (and maybe the
# libraries it uses) leak memory or other resources.  On most systems, this
# isn't really needed, but a few (such as Solaris) do have notable leaks
# in the libraries.  For Win32, set this value to zero (unlimited)
# unless advised otherwise.
#
# NOTE: This value does not include keepalive requests after the initial
#       request per connection. For example, if a child process handles
#       an initial request and 10 subsequent "keptalive" requests, it
#       would only count as 1 request towards this limit.
#
MaxRequestsPerChild 0
# --- /httpd.conf ---