[Newbie] Installing PEAR by hand via FTP && Why does go.pear.php fail with me?
| From: | XYZFounder | Date: | Wed, 15 Feb 2012 12:08:48 +0000 |
| Subject: | [Newbie] Installing PEAR by hand via FTP && Why does go.pear.php fail with me? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-31418@lists.php.net to get a copy of this message | ||
Prefix set to /home/username/files/webpear
FTP reveals, it creates the folder and some subfolders, but then
hangs???
> Starting installation ...
> Loading zlib: ok
>
> Bootstrapping Installer...................
> Bootstrapping PEAR.php............(remote)
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
>
>
>
>
>
> An Exception Has Occurred
>
>
>
> Unknown location: /pear/pear-core/branches/PEAR-1.9.4/PEAR.php
>
>
>
> HTTP Response Status
>
>
> 404 Not Found
>
>
>
>
>
>
>
>
> ok
> Bootstrapping Archive/Tar.php............(remote)
>
Next I've tried to install it by hand. I uploaded PEAR MAIN package and its dependencies into a
folder via FTP
And call it each time with set include path from a php page.
I also miss something: How do I add packages at the correct subfolder level so that PEAR can use
them??
I ran the System.php and it returned TRUE. When do I know that PEAR is working fine and how can I
use packages??
JON
<?php
$mein ='/home/username/files/pear';
set_include_path(get_include_path() . PATH_SEPARATOR . $mein);
echo get_include_path();
require_once 'System.php';
include(' Mail.php');
//print ("Hello PEAR World.!");
//var_dump(class_exists('System', false));
// returned TRUE
$recipients = 'xyzfounder@aol.com';
$headers['From'] = 'xyzfounder@aol.com';
$headers['To'] = 'xyzfounder@aol.com';
$headers['Subject'] = 'PEAR Test message';
$body = 'Test message';
// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory('mail');
$mail_object->send($recipients, $headers, $body);
print ("Done.");
?>
--
*** Sent via Ubuntu/Linux ***