Esercitazione PHP

PHP HOME Introduzione a PHP Installazione PHP Sintassi PHP Commenti PHP Variabili PHP PHP Eco/Stampa Tipi di dati PHP Stringhe PHP Numeri PHP PHP matematica Costanti PHP Operatori PHP PHP Se...Altro...Altro Passaggio PHP Ciclo PHP Funzioni PHP Matrici PHP Superglobali PHP RegEx PHP

Moduli PHP

Gestione dei moduli PHP Convalida del modulo PHP Modulo PHP richiesto URL/e-mail del modulo PHP Modulo PHP completo

PHP avanzato

Data e ora PHP PHP Include Gestione dei file PHP Apri/Leggi file PHP Creazione/scrittura di file PHP Caricamento file PHP Cookie PHP Sessioni PHP Filtri PHP Filtri PHP avanzati Funzioni di callback PHP PHP JSON Eccezioni PHP

PHP OOP

PHP Che cos'è OOP Classi/Oggetti PHP Costruttore PHP PHP distruttore Modificatori di accesso PHP Ereditarietà PHP Costanti PHP Classi astratte PHP Interfacce PHP Tratti PHP Metodi statici PHP Proprietà statiche PHP Spazi dei nomi PHP Iterabili PHP

Database MySQL

Database MySQL MySQL Connect MySQL Crea DB MySQL Crea tabella Dati di inserimento MySQL MySQL Ottieni l'ultimo ID MySQL inserisce più MySQL preparato MySQL Seleziona dati MySQL dove MySQL Ordina per MySQL Elimina dati Dati di aggiornamento MySQL Dati limite MySQL

PHP XML

Parser XML PHP Analizzatore PHP SimpleXML PHP SimpleXML - Ottieni PHP XML espatriato PHP XML DOM

PHP - AJAX

Introduzione all'Ajax AJAX PHP Database AJAX XML AJAX Ricerca in tempo reale AJAX Sondaggio AJAX

Esempi PHP

Esempi PHP compilatore PHP Quiz PHP Esercizi PHP Certificato PHP

Riferimento PHP

Panoramica di PHP matrice PHP Calendario PHP Data PHP Directory PHP Errore PHP Eccezione PHP File system PHP Filtro PHP PHP FTP PHP JSON Parole chiave PHP PHP Libxml Posta PHP PHP matematica PHP Varie PHP MySQLi Rete PHP Controllo dell'output PHP RegEx PHP PHP SimpleXML Flusso PHP Stringa PHP Gestione delle variabili PHP Analizzatore XML PHP Zip PHP Fuso orario PHP

PHP Varie Funzioni


Introduzione varie PHP

Il miscuglio le funzioni sono state collocate qui solo perché nessuna delle altre categorie sembrava adattarsi.


Installazione

Il miscuglio le funzioni fanno parte del core di PHP. Non è richiesta alcuna installazione per utilizzare queste funzioni.


Configurazione di runtime

Il comportamento del misc. funzioni è influenzato dalle impostazioni nel file php.ini.

Varie opzioni di configurazione:

Name Description Default Changeable
ignore_user_abort FALSE indicates that scripts will be terminated as soon as they try to output something after a client has aborted their connection "0" PHP_INI_ALL
highlight.string Color for highlighting a string in PHP syntax "#DD0000" PHP_INI_ALL
highlight.comment Color for highlighting PHP comments "#FF8000" PHP_INI_ALL
highlight.keyword Color for syntax highlighting PHP keywords (e.g. parenthesis and semicolon) "#007700" PHP_INI_ALL
highlight.default Default color for PHP syntax "#0000BB" PHP_INI_ALL
highlight.html Color for HTML code "#000000" PHP_INI_ALL
browscap Name and location of browser-capabilities file (e.g. browscap.ini) NULL PHP_INI_SYSTEM


Funzioni varie PHP

Function Description
connection_aborted() Checks whether the client has disconnected
connection_status() Returns the current connection status
connection_timeout() Deprecated from PHP 4.0.5. Checks whether the script has timed out
constant() Returns the value of a constant
define() Defines a constant
defined() Checks whether a constant exists
die() Alias of exit()
eval() Evaluates a string as PHP code
exit() Prints a message and exits the current script
get_browser() Returns the capabilities of the user's browser
__halt_compiler() Halts the compiler execution
highlight_file() Outputs a file with the PHP syntax highlighted
highlight_string() Outputs a string with the PHP syntax highlighted
hrtime() Returns the system's high resolution time
ignore_user_abort() Sets whether a remote client can abort the running of a script
pack() Packs data into a binary string
php_strip_whitespace() Returns the source code of a file with PHP comments and whitespace removed
show_source() Alias of highlight_file()
sleep() Delays code execution for a number of seconds
sys_getloadavg() Returns the system load average
time_nanosleep() Delays code execution for a number of seconds and nanoseconds
time_sleep_until() Makes a script sleep until the specified time
uniqid() Generates a unique ID
unpack() Unpacks data from a binary string
usleep() Delays code execution for a number of microseconds

Varie predefinite PHP Costanti

Constant Description
CONNECTION_ABORTED Connection is aborted by user or network error
CONNECTION_NORMAL Connection is running normally
CONNECTION_TIMEOUT Connection timed out
__COMPILER_HALT_OFFSET__