|
|
PHP (angielski akronim rekurencyjny, którego rozwinięcie to PHP Hypertext Preprocessor), pierwotnie nazwany Personal
Home Page - skryptowy język programowania, służący przede wszystkim do tworzenia dynamicznych stron WWW i wykonywany w
tym przypadku po stronie serwera, z możliwością zagnieżdżania w HTML (bądź XHTML). PHP jest podobny w założeniach do
dużo starszego mechanizmu SSI (Server Side Includes), jednak jest w stosunku do SSI nieporównanie bardziej rozbudowany.
Udostępniany jest na zasadach licencji open-source. Jego składnia bazuje na językach C, Java i Perl.
SQL (ang. Structured Query Language) to strukturalny język zapytań używany do tworzenia, modyfikowania baz danych oraz
do umieszczania i pobierania danych z baz danych.
Język SQL jest językiem deklaratywnym. Decyzję o sposobie przechowywania i pobrania danych pozostawia się systemowi
zarządzania bazą danych DBMS.
Jest to język programowania opracowany w latach siedemdziesiątych w firmie IBM. Stał się on standardem w komunikacji z
serwerami relacyjnych baz danych. Wiele współczesnych systemów relacyjnych baz danych używa do komunikacji z
użytkownikiem SQL, dlatego mówi się, że korzystanie z relacyjnych baz danych, to korzystanie z SQL-a.
Apache jest otwartym serwerem HTTP dostępnym dla wielu systemów operacyjnych (m.in. UNIX, GNU/Linux, BSD,
Microsoft Windows). Po angielsku słowo Apache wymawia się epaczi, co brzmi tak samo jak a patchy (server), co było
określeniem tego serwera we wczesnym stadium jego rozwoju w 1995 roku, kiedy był on głównie zbiorem poprawek (patch)
nałożonych na serwer HTTP o nazwie NCSA.
Apache jest najszerzej stosowanym serwerem HTTP w Internecie. W maju 2003 jego udział wśród serwerów wynosił 62%. W
połączeniu z interpreterem języka skryptowego PHP i bazą danych MySQL, Apache stanowi jedno z najczęściej spotykanych
środowisk w firmach oferujących miejsce na serwerach sieciowych.
|
yaz_search
(PHP 4 >= 4.0.1, PECL) yaz_search -- Prepares for a
search
Opisbool yaz_search (
resource id, string type, string query )
yaz_search() prepares for a search
on the given connection.
Like yaz_connect() this function is non-blocking
and only prepares for a search to be executed later when
yaz_wait() is called.
Parametry
- id
-
The connection resource returned by yaz_connect().
- type
-
This parameter represents the query type - only
"rpn" is supported now in
which case the third argument specifies a Type-1 query in
prefix query notation.
- query
-
The RPN query is a textual representation of the
Type-1 query as defined by the Z39.50 standard. However,
in the text representation as used by YAZ a prefix
notation is used, that is the operator precedes the
operands. The query string is a sequence of tokens where
white space is ignored unless surrounded by double
quotes. Tokens beginning with an at-character
(@) are considered operators,
otherwise they are treated as search terms.
Tabela 1. RPN Operators
| Construct |
Description |
| @and query1
query2 |
intersection of query1 and query2 |
| @or query1
query2 |
union of query1 and query2 |
| @not query1
query2 |
query1 and not query2 |
| @set name |
result set reference |
| @attrset set
query |
specifies attribute-set for query. This
construction is only allowed once - in the
beginning of the whole query |
| @attr [set]
type=value query |
applies attribute to query. The type and
value are integers specifying the attribute-type
and attribute-value respectively. The set, if
given, specifies the attribute-set. |
You can find information about attributes at the
Z39.50 Maintenance Agency site.
Zwracane wartości
Zwraca TRUE w przypadku
sukcesu, FALSE w przypadku
porażki.
Przykłady
Przykład 1. Query Examples
You can search for simple terms, like this:
which matches documents where "computer" occur.
No attributes are specified.
The query
matches documents where "knuth donald" occur
(provided that the server supports phrase search).
This query applies two attributes for the same
phrase.
@attr 1=1003 @attr 4=1 "knuth donald"
|
First attribute is type 1 (Bib-1 use),
attribute value is 1003 (Author). Second attribute has
is type 4 (structure), value 1 (phrase), so this should
match documents where Donald Knuth is author.
The query
@and @or a b @not @or c d e
|
would in infix notation look like (a or b) and ((c or d) not e).
Another, more complex, one:
@attrset gils @and @attr 1=4 art @attr 1=2000 company
|
The query as a whole uses the GILS
attributeset. The query matches documents where
art occur in the title
(GILS,BIB-1) and in which company occur as Distributor (GILS).
|
|