|
|
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.
|
iconv_substr
(PHP 5) iconv_substr -- Cut out part of a string
Descriptionstring iconv_substr ( string str, int offset [, int
length [, string charset]] )
Returns the portion of str
specified by the start and
length parameters.
If start is non-negative,
iconv_substr() cuts the portion out of
str beginning at start'th character, counting from zero.
If start is negative, iconv_substr() cuts out the portion beginning at
the position, start characters
away from the end of str.
If length is given and is
positive, the return value will contain at most length characters of the portion that begins
at start (depending on the length
of string). If str is shorter than start characters long, FALSE will be returned.
If negative length is passed,
iconv_substr() cuts the portion out of
str from the start'th character up to the character that
is length characters away from the
end of the string. In case start
is also negative, the start position is calculated beforehand
according to the rule explained above.
Note that offset and
length parameters are always
deemed to represent offsets that are calculated on the basis of
the character set determined by charset, whilst the counterpart substr()
always takes these for byte offsets. If charset is not given, the character set is
determined by the iconv.internal_encoding
ini setting.
See also substr(), mb_substr() and mb_strcut().
|