pear

PEAR Mail_Queue sending duplicate emails

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...

What is the best package for generating dynamic graphs with PHP?

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. ...

is there a PEAR::DB equivilent of FROM_UNIXTIME()

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 ...

Which should I use, pear MDB2 or pear DB_DataObject when I use MySQL when I can not use PDO?

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! ...

What is the difference between the -a and -o options when you use the Pear installer?

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...

How to set up PEAR on Mac OS X 10.5 Leopard

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 ...

How do you install PHPUnit without using PEAR on Mac OS X 10.5?

I am having trouble installing PEAR, but I really only want to install PHPUnit. Does anyone have experience doing this? ...

PEAR::DB Error, Extension Not Found

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) { // ...

Adding an array formula to an Excel spreadsheet using PHP

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...

Others frameworks like PEAR

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... ...

php array to xml, using same array key names

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...

Is the Validate PEAR package ready for production?

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:/...

How common is PEAR in the real world?

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. ...

Install Pear Extension with PHP Installer

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...

PhpDocumentor installed via PEAR on OSX not working - missing files?

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...

PECL install fails

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...

Problem With Pear DB In Many Hostings !

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...

How do you guys dealing with errors about PEAR thing?

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. ...

How to get timezone hour offset and account for DST with PEAR::Date?

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...

Add PEAR packages to Subversion repository?

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 ...