PHP5/PHP6 Funktionen, Konstanten, Variablen unter PHP4 nutzen
Wie oft ärgert man sich, wenn man auf den PHP Anleitungsseiten wieder einmal eine Funktion findet, die man gut gebrauchen könnte, diese aber nur für eine höhere PHP-Version verfügbar ist. Wer dieses Problem kennt, hat anscheinend noch nichts von PHP_Compat aus dem PEAR Projekt gehört. Wer PEAR nicht magt und darum auch nicht nutzt, kann jeden Teil der PHP Erweiterung einzeln hereinladen, siehe nachfolgende Auflistung der Struktur.
| D Compat | ||
| D Constant | ||
| DATE.php DIRECTORY_SEPARATOR.php E_STRICT.php FILE.php PATH_SEPARATOR.php PHP_EOL.php STD.php T.php UPLOAD_ERR.php |
||
| D Environment | ||
| _magic_quotes_inputs.php magic_quotes_gpc_off.php magic_quotes_gpc_on.php magic_quotes_sybase_off.php magic_quotes_sybase_on.php register_argc_argv_off.php register_argc_argv_on.php register_globals_off.php register_globals_on.php register_long_arrays_off.php register_long_arrays_on.php |
||
| D Function | ||
| acosh.php array_change_key_case.php array_chunk.php array_combine.php array_diff_assoc.php array_diff_key.php array_diff_uassoc.php array_diff_ukey.php array_fill.php array_intersect_assoc.php array_intersect_key.php array_intersect_uassoc.php array_intersect_ukey.php array_key_exists.php array_product.php array_search.php array_slice.php array_udiff.php array_udiff_assoc.php array_udiff_uassoc.php array_uintersect.php array_uintersect_assoc.php array_uintersect_uassoc.php array_walk_recursive.php asinh.php atanh.php bcinvert.php bcpowmod.php call_user_func_array.php clone.php constant.php convert_uudecode.php convert_uuencode.php cosh.php debug_print_backtrace.php file_get_contents.php file_put_contents.php floatval.php fprintf.php fputcsv.php get_headers.php get_include_path.php glob.php html_entity_decode.php htmlspecialchars_decode.php http_build_query.php ibase_timefmt.php idate.php image_type_to_mime_type.php inet_ntop.php inet_pton.php ini_get_all.php is_a.php is_callable.php is_scalar.php md5_file.php mhash.php microtime.php mime_content_type.php mkdir.php ob_clean.php ob_flush.php ob_get_clean.php ob_get_flush.php pg_affected_rows.php pg_escape_bytea.php pg_unescape_bytea.php php_strip_whitespace.php property_exists.php range.php restore_include_path.php scandir.php set_include_path.php setcookie.php setrawcookie.php sinh.php str_ireplace.php str_rot13.php str_shuffle.php str_split.php str_word_count.php stripos.php strpbrk.php strripos.php substr_compare.php tanh.php time_sleep_until.php var_export.php version_compare.php vprintf.php vsprintf.php |
||
| Components.php | ||
| D tests | ||
| D constant | ||
| directory_separator.phpt e_strict.phpt file.phpt path_separator.phpt php_eol.phpt std.phpt t.phpt upload_err.phpt |
||
| D function | ||
| array_change_key_case.phpt array_chunk.phpt array_combine.phpt array_diff_assoc.phpt array_diff_key.phpt array_diff_uassoc.phpt array_diff_ukey.phpt array_fill.phpt array_intersect_assoc.phpt array_intersect_key.phpt array_intersect_uassoc.phpt array_intersect_ukey.phpt array_key_exists.phpt array_product.phpt array_search.phpt array_slice.phpt array_udiff.phpt array_udiff_assoc.phpt array_udiff_uassoc.phpt array_uintersect.phpt array_uintersect_assoc.phpt array_uintersect_uassoc.phpt array_walk_recursive.phpt bcinvert.phpt bcpowmod.phpt call_user_func_array.phpt clone.phpt constant.phpt convert_uudecode.phpt convert_uuencode.phpt debug_print_backtrace.phpt file_get_contents.phpt file_put_contents.phpt floatval.phpt fprintf.phpt fputcsv.phpt get_headers.phpt get_include_path.phpt html_entity_decode.phpt htmlspecialchars_decode.phpt http_build_query.phpt ibase_timefmt.phpt idate.phpt image_type_to_mime_type.phpt inet_ntop.phpt inet_pton.phpt ini_get_all.phpt is_a.phpt is_scalar.phpt md5_file.phpt mhash.phpt microtime.phpt mime_content_type.phpt mkdir.phpt ob_clean.phpt ob_flush.phpt ob_get_clean.phpt ob_get_flush.phpt pg_affected_rows.phpt pg_escape_bytea.phpt pg_unescape_bytea.phpt php_strip_whitespace.phpt property_exists.phpt range.phpt restore_include_path.phpt scandir.phpt set_include_path.phpt setcookie.phpt setrawcookie.phpt str_ireplace.phpt str_rot13.phpt str_shuffle.phpt str_split.phpt str_word_count.phpt stripos.phpt strpbrk.phpt strripos.phpt substr_compare.phpt time_sleep_until.phpt var_export.phpt version_compare.phpt vprintf.phpt vsprintf.phpt |
||
| loadconstant.phpt loadfunction.phpt loadversion.phpt |
||
| Compat.php | ||
Hier könnt Ihr PHP_Compat heruntenladen
Tags: variable, erkennen, funktionen, PEAR, nutzen, PHP-Version, php5, Allgemein, konstanten, kompatibel, php6, php4