pear

Setting up PHPUnit on OSX

Though I'm sure others have eventually managed to figure this out, I've been following the various documentation out there and have been having a heck of a rough time of it. http://www.phpunit.de/manual/current/en/installation.html Makes it sound pretty easy. However depending on your setup, you might be going down a rabbit hole. PEA...

PHP5, SOAP and 64 bit Debian machine

Hi. I've recently updated the versions of PHP5 and Apache2 on 2 debian machines. I have SOAP services on them both (they're both behind a load balancer), and on one they work, the other they don't. The one that doesn't work is a 64 bit machine. I'm using PEAR SOAP and wondered if anyone had seen any issues like it or knew of any work a...

how do you add a named range to worksheet using php pear spreadsheet excel writer

Is it posible using Excel_spreadsheet_writer to create a name such as $workbook = new Spreadsheet_Excel_Writer(); $worksheet = &$workbook->addWorksheet('CheckNames'); $worksheet->writeName(0, 0, 'AnswerToEverythig', '42'); $worksheet->write(0, 1, 'Double ='); $worksheet->writeFormula(0, 2, '=AnswerToEverythig * 2'); $workbook->send...

PHP export to Excel opens twice

I'm using the Spreadsheet_Excel_Writer plug-in to perform a data export from a PHP web app. All has worked well for quite some time now, but my client just informed me that in the last couple days the export behavior has changed: the downloaded file opens in Excel, then starts a new Excel instance and opens again. If you try to edit eith...

Pear Authentication

Has anyone ever tried to use SHA-256 or SHA-512 with PEAR AUTH? MD5 works perfectly however, nothing happens when you set the cryptType to 'cryptType' => 'sha256' The page will just reload. I'm using MDB2 With this. Code is here: http://pastie.org/1065896 ...

what is the use of go-pear.php ? What it does actually ?

Can anybody tell me why do we need to install a set of classes using a script ? PHP PEAR Lib is essentially a set of classes, is it fairly good to just copy in the hosting server. So is go-pear.bat go-pear.php is necessary or its an optional. If it is necessary would like to know why? ...

Authentication with Pear Auth() and access levels

Looking on the web to find a good tutorial for implementing an auth system with Pear Auth(). I need to use different user permission, storing access level in a db field. On the official docs can't find anything about permission level... ...

Getting MDB2 to work with sqlite3 via pdo

I am using MDB2_Driver_pdoSqlite to access a sqlite3 database with PEAR. I am able to connect to the database and display a list of tables with listTables(), but when I try to run the mdb2 function tableInfo() I get an error. MDB2 Error: not found [Error message: primary is not an existing table constraint] I am running the following sys...

Pear Auth or LiveUser

I can't decide which to use, they both look pretty similar. It's for a shopping cart script, so it has to be quite secure, what thinks you? ...

Problems discovering channel in PEAR

Hi, im having this problem. everytime i try to install something using channels i get this error: Discovering channel pear.phing.info over http:// failed with message: channel-add: adding Channel "pear.phing.info" to registry failed Trying to discover channel pear.phing.info over https:// instead Discovery of channel "pear.phing.in...

PEAR Image_Graph XAxis coordinate orientation

I'm making a graph using PEAR Image_Graph and the bottom coordinates labels are dates. Instead of the labels (dates) displaying horizontally, I'd like them to display vertically - or maybe at a slight angle, so they aren't all on top of each other. However, I'm not sure if this is possible and I can't seem to find anything in the docum...

PEAR Mail is so slow, my front end is timing out.

I've got a php script that sends a few emails and echoes a response back to my front end. The problem is that the email handling is so slow, the front end is timing out. Here are the broad strokes for the email implementation. The scenario kicks off when User A books an offer from User B. User A gets a confirmation email, User B gets a...

PHP Excel, but no Spreadsheet_Excel_Writer

Hello. I need to save some data in .xls file. I am trying to use PEAR library Spreadsheet_Excel_Writer. It is work. But now i am working with hosting without PEAR. Of cause, it is very terrible. Spreadsheet_Excel_Writer has a lot of dependencies. I need a module or code, which i can include in my scripts. Thx. ...

Extracting PEAR Packages and use as a Standalone Scripts

Is there a straight forward way to extract Pear packages and use them as stand alone Libraries ...

PEAR "DB.php" error using EasyPHP

Using EasyPHP I've discovered an annoying error I can't seem to fix. I searched the internet, got a few hits, but I gained nothing from these blog posts and pages. PHP and Apache works fine, but when I want to use MySQL with PEAR (which is included in EasyPHP) and when I require("DB.php") I get this error: Warning: require(DB.php) [fun...

RPM PHP and PEAR Packages

I'm trying to package a custom build of the latest PHP (5.3.3) with a set of pear packages. Unfortunately, the options given to do this don't seem to work. I'm posting the spec file as I see it should be. The version given doesn't actually fail, but it installs the PEAR packages in the wrong location. While they should go in /var/tmp...

Error message with Pear when trying to send mail

I'm trying to send an email using PHP Pear. I have everything install correctly I assume. But I am now getting the following error message? Does anyone know what is wrong? Fatal error: Call to undefined method PEAR_Error::send() ...

pear module class not defined...

Hey guys I just installed HTTP_Download using Pear install --alldeps, and it installed successfully. However, when I try to use the module, I get. I am using the following php.ini include_path = ".:/usr/lib/php:/usr/local/lib/php". Is there a directory I should be including that is part of pear to get the module to work? Fatal error: Cl...

Parsing an .htaccess File With PHP

I am using the Zend Framework, and I use the .htaccess for some settings. I am now writing command line scripts for scheduling (e.g. cron). Command line scripts don't look at the .htaccess file because they're not served up by Apache. I would like to parse the .htaccess with my script to retrieve some settings. Here are the lines I'm...

MDB2 pear windows instalation

I am looking for a guide for installing and using MDB2 pear on my system. i use iss7 and windows vista.... I read the manual but I didn't understand too much... ...