четверг, 12 февраля 2009 г.

PARSER


 What is Parser? 
Parser - a technology to create the web site with a simple language. It is a little harder to HTML, but does not require special programming skills. Parser started Lebedev Studio in 1997. Today, the vast majority of sites created by Lebedev Studio, made with his help. 

Why would he do? 
The language specifically designed and optimized in order to be able to create good sites. Working with forms, cookies, table files, databases and XML - some language, a language of modularity makes it easy to increase functionality. 

If you have PHP, then why Parser? 
PHP - is a programming language that requires appropriate training. At Parser can be far from professional programmers. Parser is so, well, that allows mere mortals to build and maintain the complex dynamic websites without a great deal of time. 

I have programmed in other languages, whether, in a nutshell, what this user-friendly Parser? 
Parser in a sense - macro, there is no operator print; entire text typed in the source file, the essence of a big operator of print. Structures Parser are immersed in the text. 
It turns out that you do not write a program that displays the text - on the contrary, in the text you add logic, ^ if (condition) (action), and organization units (methods), which partition you are HTML-code: 
@ header [] 
... 
@ footer [] 
... 
@ navigation [] 
... 
@ body [] 
... 


I see in the browser code to the Parser, it is not treated, what could be the reason (using the web server Apache)? 
The parser still not been appointed executor of your documents. 
To check the operation of parser, type in the address bar of the browser: 
http://vash_sayt/cgi-bin/parser3.cgi (or. exe, for the version of Win32) 
You should see roughly the following: 
Parser/3.x.x 
If you saw it, a parser which should be copied, the rights to it are correct. 

If the parser is copied correctly, and you do not forget to register for. Htaccess instructions in the documentation, perhaps you forgot to allow the Apache process. Htaccess in the httpd.conf file using the instructions AllowOverride. 
To check whether you have processed. Htaccess - enter into it any obviously erroneous instruction, such as «mytest», at the very beginning. If a page reloade you do not see a 500 error (it always appears if all is configured correctly) - it means the file you have not processed. Change AllowOverride or contact your system administrator.

PARSER

0 коммент.:

Отправить комментарий