ソース掲示板




すべてから検索

キーワード   条件 表示 現行ログ 過去ログ トピックス 名前 本文
php : Win32 : zip package のインストール
日時: 2010/05/20 13:35
名前: lightbox



拡張子:
2009/04/15 現在、最新バージョンは 5.2.9 ですが、
検証は 5.2.8 で行われています
zip バージョンをダウンロードして、解凍した内容を c:\php にコピーして、 c:\php\php-cgi.exe となるようにします。 後は、php.ini を編集して終了です php.ini のダウンロード PHP セクションは、解りやすくする為にコメントを削除しました
赤い部分は、もとのままですが重要な部分です 緑の部分は変更を加えた部分です。 ディレクトリは自分の環境にあわせています。 c:\php にはパスが通っています
拡張子:
[PHP]
extension_dir = "c:\php\ext"
include_path="C:\php\pear"


error_reporting  =  E_ALL & ~E_NOTICE
short_open_tag = On
display_errors = On
variables_order = "EGPCS"
allow_url_fopen = On
max_execution_time = 30     ; Maximum execution time of each script, in seconds
post_max_size = 8M


display_startup_errors = On
track_errors = On
; require、include を http 経由で取り込むのに必要
allow_url_include = On
; IIS を含む Windows 用の一部の WEB サーバーで必要
cgi.force_redirect = 0

max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)

engine = On
zend.ze1_compatibility_mode = Off
asp_tags = Off
precision = 12
y2k_compliance = On
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
serialize_precision = 100
allow_call_time_pass_reference = On
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
disable_classes =
expose_php = On
log_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
register_globals = Off
;register_long_arrays = On
register_argc_argv = On
auto_globals_jit = On
;magic_quotes_gpc = On
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
doc_root =
user_dir =
enable_dl = On
file_uploads = On
; 実用で 2M は少し小さい可能性があります
upload_max_filesize = 2M
default_socket_timeout = 60
以下は特有の設定です
拡張子:
;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_msql.dll
;extension=php_mssql.dll
extension=php_mysql.dll
;extension=php_mysqli.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll

[Session]
; Oracle の問題を作った時に必要でした( 90 分用 )
session.gc_maxlifetime = 5400

[Date]
date.timezone = Asia/Tokyo
メンテナンス

5.2.4 の問題点 ( No.1 )
日時: 2009/02/21 18:29
名前: lightbox


日時: 2009/02/21 18:29
名前: lightbox
この環境で、AN HTTPD を使用して MySQL にアクセスするアプリを起動すると、
以下のようなエラーが表示されます( 処理は正常終了しますが )

拡張子:
Error in my_thread_global_end(): 1 threads didn't exit
これに関しては、PHP のオンラインマニュアルに投稿されている記事があります 要するに、libmysql.dll に問題があるので、5.2.1 のものと差し替えろという内容です。 もともと、5.2.0 を使用していましたので、差し替えると正しく動きました。
拡張子:
※ 5.2.5 でも同じでした。差し替える必要があります
このアーティクルの参照用URLをクリップボードにコピー メンテナンス
PEAR のインストール ( No.2 )
日時: 2008/02/29 13:58
名前: lightbox
1) go-pear.bat を実行
( pear.ini を c:\php\pear )
エラーが出るが、気にしないで次へ

2) pear channel-update pear.php.net を実行
拡張子:
C:\php>pear channel-update pear.php.net
Updating channel "pear.php.net"
Update of Channel "pear.php.net" succeeded
3) パッケージ別にインストール
拡張子:
pear install -f -a -o パッケージ名
コマンドラインスイッチについては、pear help install で参照できます ↓go-pear.bat の実行結果
拡張子:
C:\php>go-pear

Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation base ($prefix)        : C:\php
 2. Temporary directory for processing : C:\php\tmp
 3. Temporary directory for downloads  : C:\php\tmp
 4. Binaries directory                 : C:\php
 5. PHP code directory ($php_dir)      : C:\php\pear
 6. Documentation directory            : C:\php\pear\docs
 7. Data directory                     : C:\php\pear\data
 8. Tests directory                    : C:\php\pear\tests
 9. Name of configuration file         : C:\WINNT\pear.ini
10. Path to CLI php.exe                : C:\php\.

1-10, 'all' or Enter to continue: c:\php\pear\pear.ini

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation base ($prefix)        : C:\php
 2. Temporary directory for processing : C:\php\tmp
 3. Temporary directory for downloads  : C:\php\tmp
 4. Binaries directory                 : C:\php
 5. PHP code directory ($php_dir)      : C:\php\pear
 6. Documentation directory            : C:\php\pear\docs
 7. Data directory                     : C:\php\pear\data
 8. Tests directory                    : C:\php\pear\tests
 9. Name of configuration file         : C:\WINNT\pear.ini
10. Path to CLI php.exe                : C:\php\.

1-10, 'all' or Enter to continue: 9
(Use $prefix as a shortcut for 'C:\php', etc.)
Name of configuration file [C:\WINNT\pear.ini] : c:\php\pear\pear.ini

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation base ($prefix)        : C:\php
 2. Temporary directory for processing : C:\php\tmp
 3. Temporary directory for downloads  : C:\php\tmp
 4. Binaries directory                 : C:\php
 5. PHP code directory ($php_dir)      : C:\php\pear
 6. Documentation directory            : C:\php\pear\docs
 7. Data directory                     : C:\php\pear\data
 8. Tests directory                    : C:\php\pear\tests
 9. Name of configuration file         : c:\php\pear\pear.ini
10. Path to CLI php.exe                : C:\php\.

1-10, 'all' or Enter to continue:
Beginning install...
Configuration written to c:\php\pear\pear.ini...
Initialized registry...
Preparing to install...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.2.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.3.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.6.1.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.2.tar...
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
install ok: channel://pear.php.net/Archive_Tar-1.3.2
install ok: channel://pear.php.net/Console_Getopt-1.2.3
install ok: channel://pear.php.net/Structures_Graph-1.0.2
install ok: channel://pear.php.net/PEAR-1.6.1
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"

** WARNING! Old version found at C:\php, please remove it or be sure to use the new c:\php\pear.bat command

The 'pear' command is now at your service at c:\php\pear.bat


* WINDOWS ENVIRONMENT VARIABLES *
For convenience, a REG file is available under C:\php\PEAR_ENV.reg .
This file creates ENV variables for the current user.

Double-click this file to add it to the current user registry.
↓パッケージ検索( 時間がかかるので注意 )
拡張子:
C:\php>pear search IMAGE
Retrieving data...0%....50%....MATCHED PACKAGES, CHANNEL PEAR.PHP.NET:
=======================================
PACKAGE         STABLE/(LATEST)  LOCAL
Image_3D        0.4.0 (alpha)          This class allows the rendering of 3 dimensional objects utilizing PHP.
Image_Barcode   1.1.0 (stable)         Barcode generation
Image_Canvas    0.3.1 (alpha)          A package providing a common interface to image drawing, making image source code
 independent on the library used.
Image_Color     1.0.2 (stable)         Manage and handles color data and conversions.
Image_Color2    0.1.4 (alpha)          Color conversion and mixing for PHP5
Image_GIS       1.1.1 (stable)         Visualization of GIS data.
Image_Graph     0.7.2 (alpha)          A package for displaying (numerical) data as a graph/chart/plot.
Image_GraphViz  1.3.0RC3 (beta)        Interface to AT&T's GraphViz tools
Image_IPTC      1.0.2 (stable)         Extract, modify, and save IPTC data
Image_MonoBMP   0.1.0 (beta)           Manipulate monochrome BMP images
Image_Puzzle    0.2.1 (beta)           Generates puzzle pieces from image file.
Image_Remote    1.0.1 (stable)         Retrieve information on remote image files.
Image_Text      0.6.0beta (beta)       Image_Text - Advanced text maipulations in images.
Image_Tools     0.4.2 (beta)           Tools collection for image manipulation.
Image_Transform 0.9.1 (alpha)          Provides a standard interface to manipulate images using different libraries
Image_WBMP      0.1.0 (alpha)          Manipulate WBMP images
Image_XBM       0.9.0RC1 (beta)        Manipulate XBM images
XML_image2svg   0.1 (stable)           Image to SVG conversion
XML_svg2image   0.1 (beta)             Converts a svg  file to a png/jpeg image
このアーティクルの参照用URLをクリップボードにコピー メンテナンス
グラフ作成用ライブラリのインストール ( No.3 )
日時: 2008/03/03 18:59
名前: lightbox
以下の実行結果の 3 つのコマンドを実行してインストール後、PEAR\Image\Graph\Plot\Pie.php の変更
拡張子:
1) 502 行目をコメント
2) 616 行目をコメント
↓詳細
http://pear.php.net/bugs/bug.php?id=8055
   実行結果
拡張子:
C:\php>pear install -f -a -o Image_Color
downloading Image_Color-1.0.2.tgz ...
Starting to download Image_Color-1.0.2.tgz (7,724 bytes)
.....done: 7,724 bytes
install ok: channel://pear.php.net/Image_Color-1.0.2

C:\php>pear install -f -a -o Image_Canvas
WARNING: failed to download pear.php.net/Image_Canvas within preferred state "stable", will instead download version 0.3
.1, stability "alpha"
downloading Image_Canvas-0.3.1.tgz ...
Starting to download Image_Canvas-0.3.1.tgz (46,329 bytes)
.............done: 46,329 bytes
install ok: channel://pear.php.net/Image_Canvas-0.3.1

C:\php>pear install -f -a -o Image_Graph
WARNING: failed to download pear.php.net/Image_Graph within preferred state "stable", will instead download version 0.7.
2, stability "alpha"
WARNING: failed to download pear.php.net/Numbers_Words within preferred state "stable", will instead download version 0.
15.0, stability "beta"
downloading Image_Graph-0.7.2.tgz ...
Starting to download Image_Graph-0.7.2.tgz (368,056 bytes)
...........................................................................done: 368,056 bytes
downloading Numbers_Roman-1.0.2.tgz ...
Starting to download Numbers_Roman-1.0.2.tgz (6,210 bytes)
...done: 6,210 bytes
downloading Numbers_Words-0.15.0.tgz ...
Starting to download Numbers_Words-0.15.0.tgz (44,854 bytes)
...done: 44,854 bytes
install ok: channel://pear.php.net/Image_Graph-0.7.2
install ok: channel://pear.php.net/Numbers_Roman-1.0.2
install ok: channel://pear.php.net/Numbers_Words-0.15.0
このアーティクルの参照用URLをクリップボードにコピー メンテナンス