recent searches:
searching include ,
searching variable ,
searching post...
parse_ini_file() loads in the ini file specified in filename, and returns the settings in it in an associative array. By setting the last process_sections parameter to TRUE, you get a multidimensional array, with the section names and settings included. The default for process_sections is FALSE
Notatka: This function has nothing to do with the php.ini file. It is already processed, the time you run your script. This function can be used to read in your own application's configuration files.
Notatka: If a value in the ini file contains any non-alphanumeric characters it needs to be enclosed in double-quotes (").
Notatka: Since PHP 4.2.1 this function is also affected by tryb bezpieczny and open_basedir.
Notatka: As of PHP 5.0 this function also handles new lines in values.
Notatka: There are reserved words which must not be used as keys for ini files. These include: null, yes, no, true, and false.
The structure of the ini file is similar to that of the php.ini's.
Constants may also be parsed in the ini file so if you define a constant as an ini value before running parse_ini_file(), it will be integrated into the results. Only ini values are evaluated. For example:
Keys and section names consisting from numbers are evaluated as PHP integers thus numbers starting by 0 are evaluated as octals and numbers starting by 0x are evaluated as hexadecimals.
| Poprzedni | Spis treści | Następny |
| move_uploaded_file | Początek rozdziału | pathinfo |
Język PHP to dzisiaj powszechnie przyjęty standard, podstawa tworzenia dynamicznych stron WWW, opartych na bazach danych.
PHP to język skryptowy. Znaczy to, że jest to język nie kompilowalny. Program jest wykonywany przez interpreter na podstawie jego kodu źródłowego. Język PHP to element technologii internetowej SERVER-SIDE. Znaczy to, że kod języka jest wykonywany od strony serwera (na serwerze).
W jakim celu używac PHP? Po co to komu?
Załóżmy, że potrzebujemy takiej strony internetowej, która wyświetli zawsze bieżącą datę. Dzięki technologii PHP, datę i godzinę odczytywać można z miejsca gdzie wykonuje się skrypt, np. gdy serwer znajduje się w USA a my w Polsce to widoczna jest różnica w czasie który zostanie wyświetlony.
luxuss pasaz Sheyki hill's powiększanie ust, ubezpieczenia na życie, hurtownia odzieży, powiększanie ust, wizy do rosji, agroturystyka kaszuby, własne konto bankowe, klasyfikacja