PHP4.xでPHP5.xの関数を使いたい場合に。upgrade.php
2007-10-27
upgrade.phpは、PHP4.xのサーバーでPHP5の関数を使いたい場合に、非常に便利なPHPファイルです。
現時点のZen-Cartでは、PHP5.xだと動作が怪しいので、PHP4.xで動作している方が多いでしょうから覚えておくと後で役に立つかもしれません。
基本的な使い方は、非常に簡単です。
http://upgradephp.berlios.de/からダウンロードしたupgrade.phpを適当なディレクトリへアップし
<?php
if (PHP_VERSION < "4.4.0") { include(".../upgrade.php"); }
?>
とするだけで、OK。Zen-Cartの場合は、
includes/functions/extra_functions/
にアップロードするだけで自動的に読み込まれます。
これにより以下の関数が使えるようになるようです。(v15-READMEより)
キ json_encode キ json_decode キ strptime キ gzdecode キ htmlspecialchars_decode キ fputcsv キ ob_get_headers キ xmlentities キ stripos キ strripos キ str_ireplace キ get_headers キ headers_list キ fprintf キ vfprintf キ str_split キ http_build_query キ convert_uuencode キ convert_uudecode キ scandir キ idate キ time_nanosleep キ strpbrk キ php_real_logo_guid キ php_egg_logo_guid キ get_declared_interfaces キ array_combine キ array_walk_recursive キ substr_compare キ spl_classes キ class_parents キ session_commit キ dns_check_record キ dns_get_mx キ setrawcookie キ file_put_contents キ count_recursive キ file_get_contents キ fnmatch キ glob キ array_key_exists キ array_intersect_assoc キ array_diff_assoc キ html_entity_decode キ str_word_count キ str_shuffle キ get_include_path キ set_include_path キ restore_include_path キ str_rot13 キ array_change_key_case キ array_fill キ array_chunk キ md5_file キ is_a キ fmod キ floatval キ is_infinite キ is_nan キ is_finite キ var_export キ strcoll キ diskfreespace キ disktotalspace キ vprintf キ vsprintf キ import_request_variables キ hypot キ log1p キ expm1 キ sinh キ cosh キ tanh キ asinh キ acosh キ atanh キ mhash キ mhash_count キ mhash_get_hash_name キ mhash_get_block_size キ array_udiff_uassoc キ array_udiff_assoc キ array_diff_uassoc キ array_udiff キ array_uintersect_uassoc キ array_uintersect_assoc キ array_uintersect キ array_intersect_uassoc キ dc___exec キ bcscale キ bcadd キ bcsub キ bcmul キ bcdiv キ bcmod キ bcpow キ bcpowmod キ bcsqrt キ bccomp キ bc___scaledown キ gettext キ gettext___plural_guess キ ngettext キ dngettext キ dcngettext キ dcgettext キ dgettext キ textdomain キ bindtextdomain キ gettext___load_mo キ gettext___load_po キ bind_textdomain_codeset キ _ キ mime_content_type キ image_type_to_mime_type キ image_type_to_extension キ exif_imagetype キ array_filter キ array_map キ is_callable キ array_search キ array_reduce キ is_scalar キ localeconv キ call_user_func_array キ call_user_method_array キ array_sum キ constant キ is_null キ pathinfo キ escapeshellarg キ is_uploaded_file キ move_uploaded_file キ strncasecmp キ wordwrap キ php_uname キ php_sapi_name キ posix_mkfifo キ posix_getcwd キ posix_kill キ posix_uname キ ctype_alnum キ ctype_alpha キ ctype_digit キ ctype_xdigit キ ctype_cntrl キ ctype_space キ ctype_upper キ ctype_lower キ ctype_graph キ ctype_punct キ ctype_print キ odbc_connect キ odbc_pconnect キ odbc_close キ odbc_exec キ odbc_do キ odbc_prepare キ odbc_execute キ odbc_fetch_array キ odbc_fetch_row キ odbc_fetch_object キ odbc_fetch_into キ odbc_free_result キ odbc_next_result キ odbc_num_fields キ odbc_num_rows
過去のコメント / Archived comments
技術内容に関係するコメントを保存しています。投稿受付は終了しました。投稿者名・連絡先は掲載していません。
Comment #60624
2016-07-20
バニラと聞くと、一般的にはマクドナルドなどで売っているソフトクリームを思い浮かべるのではないでしょうか?
しかしバニラは植物です。小さな美しい白い花です。バニラの植物から摘出された香料のことをバニラと言い、種小名はラテン語で「扁平な葉」という意味です。
バニラエッセンスは加熱により香りが揮発しやすいので、お菓子など高熱で熱するモノには実際のところバニラオイルがおすすめです。
どの例でも非常に香りが強く、特にオイルは少量で十分な香りがするため使い際には注意が必要です。