ソース掲示板




すべてから検索

キーワード   条件 表示 現行ログ 過去ログ トピックス 名前 本文

  メンテナンス 前画面に戻る

対象スレッド 件名: 2013 年 : Pear インストール / Mail パッケージと実行サンプル( GMail でメール送信 )
名前: lightbox
処理選択
パスワード

件名 2013 年 : Pear インストール / Mail パッケージと実行サンプル( GMail でメール送信 )
名前 lightbox
コメント
@C:#CB3232(▼ まずこれをダウンロードして、php フォルダにコピー)
http://pear.php.net/go-pear.phar

@C:#CB3232(▼ php.ini の変更)
[[php.ini]]
@DIV
include_path=".;C:\php\pear\"

extension=php_openssl.dll
@END

@C:#CB3232(▼ 実行)
@SHOW
C:\php>@c:red(php go-pear.phar)

Are you installing a system-wide PEAR or a local copy?
(system|local) [system] : @c:red(no)
Please confirm local copy by typing 'yes' : @c:red(yes)

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\docs
 7. Data directory                                : C:\php\data
 8. User-modifiable configuration files directory : C:\php\cfg
 9. Public Web Files directory                    : C:\php\www
10. Tests directory                               : C:\php\tests
11. Name of configuration file                    : [[C:\php\pear.ini]]
12. Path to CLI php.exe                           : C:\php

1-12, 'all' or Enter to continue:

Beginning install...
Configuration written to C:\php\pear.ini...
Initialized registry...
Preparing to install...
installing phar://C:/php/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.11.t
ar...
installing phar://C:/php/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.3.1
.tar...
installing phar://C:/php/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.9.4.tar...
installing phar://C:/php/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0
.4.tar...
installing phar://C:/php/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.2.1.tar..
.
install ok: channel://pear.php.net/Archive_Tar-1.3.11
install ok: channel://pear.php.net/Console_Getopt-1.3.1
install ok: channel://pear.php.net/Structures_Graph-1.0.4
install ok: channel://pear.php.net/XML_Util-1.2.1
install ok: channel://pear.php.net/PEAR-1.9.4
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

** The 'pear' command is not currently in your PATH, so you need to
** use 'c:\php\pear.bat' until you have added
** 'C:\php' to your PATH environment variable.

Run it without parameters to see the available actions, try 'pear list'
to see what packages are installed, or 'pear help' for help.

For more information about PEAR, see:

  http://pear.php.net/faq.php
  http://pear.php.net/manual/

Thanks for using go-pear!

@LINE

[[一応チャネルを更新する]]

C:\php>@c:red(pear channel-update pear.php.net)
Updating channel "pear.php.net"
Channel "pear.php.net" is up to date

@LINE

[[現在インストールされているパッケージ]]

C:\php>@c:red(pear list)
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE          VERSION STATE
Archive_Tar      1.3.11  stable
Console_Getopt   1.3.1   stable
PEAR             1.9.4   stable
Structures_Graph 1.0.4   stable
XML_Util         1.2.1   stable

@LINE

[[欲しいパッケージを検索]]

C:\php>@c:red(pear search Mail)
Retrieving data...0%
....50%...MATCHED PACKAGES, CHANNEL PEAR.PHP.NET:
=======================================
PACKAGE          STABLE/(LATEST) LOCAL
Mail             1.2.0 (stable)        Class that provides multiple interfaces for sending emails
Mail_IMAP        1.1.0RC2 (beta)       Provides a c-client backend for webmail.
Mail_IMAPv2      0.2.1 (beta)          Provides a c-client backend for webmail.
Mail_Mbox        0.6.3 (beta)          Read and modify Unix MBOXes
Mail_Mime        1.8.8 (stable)        Mail_Mime provides classes to create MIME messages.
Mail_mimeDecode  1.5.5 (stable)        Provides a class to decode mime messages.

Mail_Queue       1.2.7 (stable)        Class for put mails in queue and send them later in background.
Net_Vpopmaild    0.3.2 (beta)          Class for accessing Vpopmail's vpopmailddaemon
Services_Mailman 0.1.0 (beta)          Integrates Mailman into a website using PHP

@LINE

[[依存するパッケージをインストール]]

C:\php>@c:red(pear install -f -a -o Mail)
WARNING: "pear/Auth_SASL" is deprecated in favor of "pear/Auth_SASL2"
downloading Mail-1.2.0.tgz ...
Starting to download Mail-1.2.0.tgz (23,214 bytes)
........done: 23,214 bytes
downloading Net_SMTP-1.6.2.tgz ...
Starting to download Net_SMTP-1.6.2.tgz (13,077 bytes)
...done: 13,077 bytes
downloading Net_Socket-1.0.14.tgz ...
Starting to download Net_Socket-1.0.14.tgz (5,600 bytes)
...done: 5,600 bytes
downloading Auth_SASL-1.0.6.tgz ...
Starting to download Auth_SASL-1.0.6.tgz (9,119 bytes)
...done: 9,119 bytes
install ok: channel://pear.php.net/Mail-1.2.0
install ok: channel://pear.php.net/Net_Socket-1.0.14
install ok: channel://pear.php.net/Auth_SASL-1.0.6
install ok: channel://pear.php.net/Net_SMTP-1.6.2

@LINE

[[インストール結果を確認]]

C:\php>@c:red(pear list)
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE          VERSION STATE
Archive_Tar      1.3.11  stable
Auth_SASL        1.0.6   stable
Console_Getopt   1.3.1   stable
Mail             1.2.0   stable
Net_SMTP         1.6.2   stable
Net_Socket       1.0.14  stable
PEAR             1.9.4   stable
Structures_Graph 1.0.4   stable
XML_Util         1.2.1   stable

@END