Leçon N° 19 : Les variables d environnement
Les extensions de PHP**
Dans le PHP.INI, enlever l'extension ctype la remettre en dynamique, et la tester avec une instruction fournie par cette extension
Notes de page
Source: lesson_19_b0_extensions.phpRésultat
<pre>
<?php
//dl(SimpleXML); 
echo "Liste des extensions chargées : <br/>";
print_r(get_loaded_extensions());
echo 
"Liste des fonctions xml : <br/>";
print_r(get_extension_funcs("xml"));
echo 
"Liste des fonctions gd : <br/>";
print_r(get_extension_funcs("gd"));
echo 
"Liste des fonctions ctype : <br/>";
print_r(get_extension_funcs("ctype"));
?>


Liste des extensions chargées : 
Array ( [0] => Core [1] => date [2] => libxml [3] => openssl [4] => pcre [5] => sqlite3 [6] => zlib [7] => bcmath [8] => bz2 [9] => calendar [10] => ctype [11] => curl [12] => dba [13] => dom [14] => hash [15] => FFI [16] => fileinfo [17] => filter [18] => ftp [19] => gd [20] => gettext [21] => gmp [22] => SPL [23] => iconv [24] => session [25] => standard [26] => intl [27] => json [28] => mbstring [29] => memcached [30] => mongodb [31] => mysqlnd [32] => PDO [33] => pdo_mysql [34] => pdo_pgsql [35] => pdo_sqlite [36] => pgsql [37] => Phar [38] => posix [39] => pspell [40] => redis [41] => Reflection [42] => imagick [43] => SimpleXML [44] => soap [45] => sockets [46] => sodium [47] => imap [48] => ssh2 [49] => exif [50] => sysvmsg [51] => sysvsem [52] => sysvshm [53] => tokenizer [54] => xml [55] => xmlreader [56] => xmlrpc [57] => xmlwriter [58] => xsl [59] => zip [60] => mysqli [61] => cgi-fcgi [62] => ionCube Loader [63] => Zend OPcache ) Liste des fonctions xml :
Array ( [0] => xml_parser_create [1] => xml_parser_create_ns [2] => xml_set_object [3] => xml_set_element_handler [4] => xml_set_character_data_handler [5] => xml_set_processing_instruction_handler [6] => xml_set_default_handler [7] => xml_set_unparsed_entity_decl_handler [8] => xml_set_notation_decl_handler [9] => xml_set_external_entity_ref_handler [10] => xml_set_start_namespace_decl_handler [11] => xml_set_end_namespace_decl_handler [12] => xml_parse [13] => xml_parse_into_struct [14] => xml_get_error_code [15] => xml_error_string [16] => xml_get_current_line_number [17] => xml_get_current_column_number [18] => xml_get_current_byte_index [19] => xml_parser_free [20] => xml_parser_set_option [21] => xml_parser_get_option ) Liste des fonctions gd :
Array ( [0] => gd_info [1] => imagearc [2] => imageellipse [3] => imagechar [4] => imagecharup [5] => imagecolorat [6] => imagecolorallocate [7] => imagepalettecopy [8] => imagecreatefromstring [9] => imagecolorclosest [10] => imagecolorclosesthwb [11] => imagecolordeallocate [12] => imagecolorresolve [13] => imagecolorexact [14] => imagecolorset [15] => imagecolortransparent [16] => imagecolorstotal [17] => imagecolorsforindex [18] => imagecopy [19] => imagecopymerge [20] => imagecopymergegray [21] => imagecopyresized [22] => imagecreate [23] => imagecreatetruecolor [24] => imageistruecolor [25] => imagetruecolortopalette [26] => imagepalettetotruecolor [27] => imagesetthickness [28] => imagefilledarc [29] => imagefilledellipse [30] => imagealphablending [31] => imagesavealpha [32] => imagecolorallocatealpha [33] => imagecolorresolvealpha [34] => imagecolorclosestalpha [35] => imagecolorexactalpha [36] => imagecopyresampled [37] => imagerotate [38] => imageflip [39] => imageantialias [40] => imagecrop [41] => imagecropauto [42] => imagescale [43] => imageaffine [44] => imageaffinematrixconcat [45] => imageaffinematrixget [46] => imagesetinterpolation [47] => imagesettile [48] => imagesetbrush [49] => imagesetstyle [50] => imagecreatefrompng [51] => imagecreatefromwebp [52] => imagecreatefromgif [53] => imagecreatefromjpeg [54] => imagecreatefromwbmp [55] => imagecreatefromxbm [56] => imagecreatefromxpm [57] => imagecreatefromgd [58] => imagecreatefromgd2 [59] => imagecreatefromgd2part [60] => imagecreatefrombmp [61] => imagecreatefromtga [62] => imagepng [63] => imagewebp [64] => imagegif [65] => imagejpeg [66] => imagewbmp [67] => imagegd [68] => imagegd2 [69] => imagebmp [70] => imagedestroy [71] => imagegammacorrect [72] => imagefill [73] => imagefilledpolygon [74] => imagefilledrectangle [75] => imagefilltoborder [76] => imagefontwidth [77] => imagefontheight [78] => imageinterlace [79] => imageline [80] => imageloadfont [81] => imagepolygon [82] => imageopenpolygon [83] => imagerectangle [84] => imagesetpixel [85] => imagestring [86] => imagestringup [87] => imagesx [88] => imagesy [89] => imagesetclip [90] => imagegetclip [91] => imagedashedline [92] => imagettfbbox [93] => imagettftext [94] => imageftbbox [95] => imagefttext [96] => imagetypes [97] => jpeg2wbmp [98] => png2wbmp [99] => image2wbmp [100] => imagelayereffect [101] => imagexbm [102] => imagecolormatch [103] => imagefilter [104] => imageconvolution [105] => imageresolution ) Liste des fonctions ctype :
Array ( [0] => ctype_alnum [1] => ctype_alpha [2] => ctype_cntrl [3] => ctype_digit [4] => ctype_lower [5] => ctype_graph [6] => ctype_print [7] => ctype_punct [8] => ctype_space [9] => ctype_upper [10] => ctype_xdigit )

Tous droits réservés. 2005-2020