[PEAR-BUG] Doc #16779 [NEW]: Tell people how to check if pear is installed on shared host with web interface
[email protected] ("cweiske at php dot net")
| Newsgroups | php.pear.doc |
|---|---|
| Message-ID | <[email protected]> |
From: cweiske
Operating system:
Package version:
PHP version: Irrelevant
Package: Documentation
Bug Type: Documentation Problem
Bug description: Tell people how to check if pear is installed on shared host with web interface
Description:
------------
<Rob``> hey, i'm a bit of a newb to PEAR, I've installed it (afaik),
and I'm trying to get the Mail-Queue package working, I've installed it
- and followed the tutorial and it says that Mail/Queue.php couldn't be
included. <Rob``> anyone got any ideas? <till> AzaToth: yeah, correct.
so maybe System_Daemon accepts multiple :) <till> Rob``: see if the
directory where it's installed is in your include_path <Rob``> I'm on a
shared host, and I don't have access to the CLI, just the web interface
- hence the PEAR Manual way of checking if it's installed correctly
doesn't work. <till> how did you install it? <till> btw, on top of your
script, you can do: set_include_path('/new/path:' .
get_include_path()); <Rob``> include path is .:/usr/share/pear-php5
<till> and where did you install it? <Rob``> not there :P <till> geesh,
ok. <Rob``> ./htdocs/rob <till> use an absolute path
<till> not just ./htdocs
<till> and add that the way i showed you
<Rob``> alright, cheers
<till> you're welcome!
<Rob``> so thats that sorted, but now it's not adding anything to the
database <Rob``> loads, without errors this time, yet the mail_queue
table is still empty <Rob``> sorry about this btw
<till> check your code, you need to test with PEAR::isError(), there is
also Mail_Queue::hasErrors() and getErrors(). <till> it's in the docs
online <till> most likely your db credentials are off
<Rob``> christ this is different from php :P
<till> no, it's just php4
<till> there are no exceptions, or anything
<till> http://code.google.com/p/mail-queue2/ < you can test our new
fork, but it's a large work in progress :) <till> i hope to have some
time for it in end of nov <Rob``> I'm looking for a newsletter sender
really, PHP's mail isn't supposed to be used in a for loop, which is
what I was orginally doing, and I was pointed to PEAR. <till> finish it
uppp :) <till> yeah, well, you can use Mail_Queue already for that
<till> that's what i use it for as well <till> you just need to read
the docs <till> they document all the current short-comings
<till> http://pear.php.net/manual/en/package.mail.mail-queue.php
<till> just fyi
<Rob``> thanks :P
<till> night!
<Rob``> argh, I can't seem to get this, no errors are appearing when I
use either of those functions. <Rob``> Anyone else about that has had
exp. with this package? <AzaToth> till: sad It has to be known as
System_Socket and not just Socket <zul> till: i have it working fix
should be uploaded tomorrow
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=16779&edit=1
--