[imp] Re: cannot send messages using smtp

Guy guy at de-schepper.be
Tue Mar 25 19:54:12 PST 2003


For those who are interested,
I just found how to get the pear package manager on windows:

Normally, this should do the trick:
cli\php -n -r "include 'http://go-pear.org';"

But (of course), that doesn't work for me.
The solution that did work for me was this one:
- open http://go-pear.org in your browser (ie, netscape or whatever)
- save this page to a file (in my example: d:\temp\go-pear
- open a command line (Start -> run -> cmd)
- make sure you are in you php directory and type: "php -f D:\temp\go-pear" (without the quotes)

Now you get something like this:

D:\progs\php-4.3.1-Win32-cvs>php -f D:\temp\go-pear
Welcome to go-pear!

Go-pear will install the 'pear' command and all the files needed by
it.  This command is your tool for PEAR installation and maintenance.

Go-pear also lets you download and install the PEAR packages bundled
with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser.

If you wish to abort, press Control-C now, or press Enter to continue:

HTTP proxy (host:port), or Enter for none: <your-proxy-goes-here>

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 prefix          : c:\php4
  2. Binaries directory           : $prefix
  3. PHP code directory           : $prefix\pear
  4. Documentation base directory : $php_dir\docs
  5. Data base directory          : $php_dir\data
  6. Tests base directory         : $php_dir\tests

1-6, 'all' or Enter to continue: 1
Installation prefix [c:\php4] : D:\progs\php-4.3.1-Win32-cvs

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 prefix          : D:\progs\php-4.3.1-Win32-cvs
  2. Binaries directory           : $prefix
  3. PHP code directory           : $prefix\pear
  4. Documentation base directory : $php_dir\docs
  5. Data base directory          : $php_dir\data
  6. Tests base directory         : $php_dir\tests

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

The following PEAR packages are bundled with PHP: DB, Net_Socket, Net_SMTP,
Mail, XML_Parser.
Would you like to install these as well? [Y/n] : y

Downloading package: PEAR.............ok
Downloading package: Archive_Tar......ok
Downloading package: Console_Getopt...ok
Downloading package: XML_RPC..........ok
Bootstrapping: PEAR...................ok
Bootstrapping: Archive_Tar............ok
Bootstrapping: Console_Getopt.........ok
Downloading package: DB...............ok
Downloading package: Net_Socket.......ok
Downloading package: Net_SMTP.........ok
Downloading package: Mail.............ok
Downloading package: XML_Parser.......ok
Extracting installer..................ok
install ok: PEAR 1.0.1
install ok: Archive_Tar 1.0
install ok: Console_Getopt 1.0
install ok: XML_RPC 1.0.4
install ok: DB 1.4b1
install ok: Net_Socket 1.0.1
install ok: Net_SMTP 1.1.2
install ok: Mail 1.0.2
install ok: XML_Parser 1.0.1

The 'pear' command is now at your service at D:\progs\php-4.3.1-Win32-cvs\pear

** The 'pear' command is not currently in your PATH, so you need to
** use 'D:\progs\php-4.3.1-Win32-cvs\pear' until you have added
** 'D:\progs\php-4.3.1-Win32-cvs' 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://cvs.php.net/co.php/pearweb/doc/pear_package_manager.txt?p=1
   http://pear.php.net/manual/

Thanks for using go-pear!


D:\progs\php-4.3.1-Win32-cvs>



Hope this can help others too.


regards,


Guy




More information about the imp mailing list