Here's a couple of questions:
Is mail_queue->put supposed to insert a message twice in the database? The only differences are the time_to_send value and the user_id.
This is what I get for a single message for one user:
1. user_id = 1, time_to_send = 2009-02-10 14:02:02
2. user_id = -1, time_to_send = 2009-02-10 14:00:02
The first o...
I have a strong need to start implementing database driven graphs on a couple of projects and the only library I have really played with is PEAR's Image_Graph. On the surface this seems fairly limited and like it may not be the best solution. I am going to need to generate both bar/pie charts, nothing overly fancy for the first cut.
...
Hi
I'm working on a way to extract given data from a timestamp in a MySQL. I've been advised to try FROM_UNIXTIME() ... but my development is built around pear::db so I'm looking for a replacement. Have you any suggestions
thankx
...
Almost all of free web hosting server,
you can not use PDO + MySQL.
They lack PDO drivers.
So I am considering to select
pear MDB2,
or DB_DataObject.
Which do you reccomend to me?
Give me your opinions!
...
When you use the Pear installer, like
pear install DB
you can use the '-a' option or the '-o' option.
What is the difference between them?
@Ólafur Waage
I want to ask the
difference between
all and only.
I cannot understand what they are.
What are the 'all' dependencies
and what the 'only' dependencies?
Are there any diff...
I'm ultimately trying to install PEAR so I can easily install PHPUnit. I want to set up a Mac, Apache, MySQL, PHP, PHPUnit development environment so I can test locally. I already have Apach, MySQL and PHP working. Now all I need is PHPUnit, which means I need PEAR to install it.
I have searched all over, and there are a few variations ...
I am having trouble installing PEAR, but I really only want to install PHPUnit. Does anyone have experience doing this?
...
I am attempting to install phpBugTracker on our web server. When I attempt to test the database connection on the installation screen, I get an error screen that reads "DB Test Failure... DB Error: extension not found". The error is being thrown from the following function:
function test_database(&$params, $testonly = false) {
// ...
I'm generating an excel spreadsheet using the PEAR extension, Spreadsheet_Excel_Writer. I need to add an array formula to one of the cells, but all the info I've read about them only discusses them as if you're in the Excel program itself: it says you have to type in the formula as normal and then press Ctrl+Shift+Enter to switch it to a...
Do you know others frameworks like PEAR (http://pear.php.net) ? I want to use reusable PHP components without using the famous PEAR.
I already use a framework (Zend Framework) and i want to use php components who doesn't exists in ZF like payment, encryption, math...
...
We are using pear's xml serializer to turn our request arrays into XML to submit to other servers for an XML response.
The problem is, for one of the attributes we will need to submit an XML similar to this
<totalRooms>
<Room>
...
</Room>
<Room>
...
</Room>
</totalRooms>
How do we compile this in PHP arrays so the Ser...
There appears to be a Validate package in Pear that I'm interested in useing in production. Our site has about 20M uniques across 10 languages, so as part of due diligence, thought I'd asked around here.
Does anyone have any experience with this PEAR package?
Is it ready for production?
Here's the Validate package in question:
http:/...
I have looked at a good deal of other peoples source code and other open source PHP software, but it seems to me that almost nobody actually uses PEAR.
How common is PEAR usage out in real world usage?
I was thinking that maybe the current feeling on frameworks may be affecting its popularity.
...
I install PHP using the PHP installer. And so, the PEAR package is not included. The question now is I need PEAR for Symfony upgrade purpose, but the resources I found on the internet seem to cater for the case where PEAR package is already included in PHP package.
What is the best way to install PEAR extension, given that I use PHP ins...
Hi there.
I'm basically new to PEAR (and PhpDocumentor); I installed PhpDocumentor using the PEAR CLI, and everything seemed to go fine... until I went to use it, at which point I got the following error:
Warning: require(PhpDocumentor/phpDocumentor/phpdoc.inc):
failed to open stream: No such file or directory in
/usr/local/bin/phpdo...
Hey!
I have browsed every Google result, read all the forum posts about this error, but I cannot solve it.
When using PECL install for anything, I always end up getting this error:
checking whether the C compiler works... configure: error: cannot run C compiled programs.
Everything else succeeds up to that point them bam!
I'm using...
Hi , I Connent and Query My Db Using PEAR DB Like This :
if(stristr($_SERVER['HTTP_HOST'] , 'localhost')){
$dsn = 'mysql://root:@localhost/xxx' ;
}else{
$dsn = 'mysql://xxx:xxx@localhost/xxx' ;
}
$dbc =& DB::connect($dsn);
$dbc->query("set names utf8" );
if (PEAR::isError($dbc , array('debug'=>3))) {
die($dbc->getMessage());
}
i...
When I use PEAR, it always generates
lots of errors.
How do you guys treating about them?
(1)use PEAR , and just ignore errors.
What is error thing? I can't see them.
(2)use PEAR, but tweak error level,
to they do not generate errors.
(3)Don't use PEAR thing. switch to cakephp.
...
I am trying to get the offset hours from UTC, given a summer date. My system time is set to America/Los_Angeles.
I have the following:
require_once("Date.php");
$dateTZ = new Date_TimeZone('America/Los_Angeles');
echo $dateTZ->getOffset(new Date('2009-07-01 12:00:00'))/1000/60/60;
This prints '-8'; shouldn't it show '-7'?
echo $da...
I'm working on a project that'll use PEAR packages. Because you never know what version of the PEAR package will be installed on your hosting provider (and especially because I require a patch to have been applied to one of the packages), I'd like to put the PEAR source for my project right into SVN, so other developers can immediately ...