pear

Why am I receiving an error when installing PEAR?

I am trying to install PEAR for use with PHP. As i read on the installation instructions at http://pear.php.net/manual/en/installation.getting.php , I am supposed to run the file go-pear.bat which I have in my C:\wamp\bin\php\php5.3.0 directory. According to all the installation guides I have read, it should install and ask me a series o...

Is it possible to use a pear package without pear itself?

Hi, Honestly, I know nothing about pear (... installation and all). But I know that there are MANY useful functions available through pear. I wonder if it is possible to use a source file out of the repository and use it with complete disregard for the rest of pear? Thanks Edit: After I read Mike's answer I think I'd better explain mo...

Are there known connection issues for calling ASP .NET web service from PHP?

This may not be an appropriate question, but I'm not sure how else to research this. We have a client who uses PHP to connect to our .NET web service on a third party web host. They have been complaining about intermittent connection issues. On our end we have tested the service and it works, no problems. It's an extremely simple servi...

Dealing with empty tags in pear xml_serializer

Im using PEAR XML Serializer to generate xml results from array inputs. I found out that empty array elements are encoded like this: <arraykey/>. I'd rather prefer it this way <arraykey></arraykey> Below are my options: $options = array ( 'indent' => ' ', 'defaultTagName' => $this->xml_tag_name, 'addDecl' => true, ...

magento extension installation

I want to install a Magento extension in WAMP, but not from the Magento connect system. How can I do this? I have the module (extension) code and I already installed the sample data in the Magento installation. Thanks. ...

PHP: PEAR Mail connecting but not sending (no error)?

I'm using PEAR's Mail package to send email from my script. I'm pretty sure I have everything connected and declared properly, but when the script runs, it just connects then immediately disconnects to my Mail server without actually sending the email. From my Postfix logs: Nov 18 16:15:49 mailer postfix/smtpd[30346]: connect from xxx-...

Using MDB2 and MySQLi together (Good or bad?)

I want to use the PEAR Mail_queue package which requires the PEAR MDB2 package for database abstraction. I currently use MySQLi for all my database queries and dont really desire using MDB2. Would it be bad practice to use both MDB2 and MySQLi in my PHP applications at the same time? Can anyone give me a good reason to use MDB2 over ...

Net_Geo Pear Package in PHP

Hi All, I have installed the Net_Geo pear package on my PHP Server. This is the code I am using, require_once('Net/Geo.php'); // new Net_Geo object $net_geo = new Net_Geo(); // fetch the client's IP $ip = $_SERVER['REMOTE_ADDR']; // fetch information array from net_geo $results = $net_geo->getRecord($ip); // output echo "Singl...

Pear Excel Writer: trimming leading zeros - how to prevent?

I'm using the Pear Excel Writer package to export a dataset to Excel from PHP. My problem is some of the data fields have leading zeros (such as a zip code), but these are being trimmed in Excel. I tried adding an apostrophe to the start of the fields to force a text field, but then Excel displays it, which I don't want. I'm neither a PH...

go-pear.bat file won't install PEAR at all.

I just made a new install of WAMP on Windows 7 and I'm trying to get PEAR to work. Things are going wrong from the very beginning. When I try to execute the go-pear.bat file, it shows me this. phar "C:\wamp\bin\php\php5.3.1\PEAR\go-pear.phar" does not have a signature Warning: require_once(phar://go-pear.phar/index.php): fail...

PHP Warning starting PEAR - Unable to load dynamic library 'php_mysql.so'

Everytime I run PEAR, I get this error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mysql.so' - /usr/lib64/php/modules/php_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 I've reviewed /etc/php.ini and not found any reference to php_mysql.so. /usr/lib6...

What is Pear DB library?

Hey Guys, I am a noob to PHP can anyone explain me whats Pear DB library with a practical use? Thanks ...

Configuartion for Pear DB Library

Hi Guys, I am trying to connect to MYSQL database using the Pear DB library. IS there any settings i need to do if i want to work with Pear DB library? Thanks ...

PEAR HTML_BBCodeParser displays backslashes before single and double quotes

I'm trying out the PEAR HTML_BBCodeParser script on my home server. For some reason, the script displays backslashes () before single and double quotes in the text after being parsed. I've skimmed through the code, but can't find the place where it does this. Might have missed something--the file is 900 lines long! If anybody knows what ...

Using PECL to install extensions on Windows 7

I've been trying to install some PECL extensions on my laptop, but I've ran into a few problems. Whenever I run pecl install whatever from the command line I get a message saying ".\php.exe appears to have a suffix .exe, but config variable php". It seems like PECL is using PEAR to perform installations. I checked and php_suffix is locat...

Installing PHPUnit via PEAR

I have problems installing PHPUnit 3.4.6 via PEAR 1.9.0. After I discover channel pear.phpunit.de and try to use one of following commands: pear install phpunit/PHPUnit pear install --alldeps phpunit/PHPUnit pear install --onlyreqdeps phpunit/PHPUnit it fails, giving me following error: No releases available for packa...

Get Digg count of an URL using Services_Digg2 with PHP

Has somebody usable info on this, It isnt clear if this api is even capable of searching by url, searched trough G, without much success. Some info about new Services_Digg2 pear package: http://digg.com/api/docs/servicesdigg2 ...

Problem with Apache and PHP (using PEAR)

Hello! I have a problem with Apache, which restarting, when I want to open PHP code in browser. Code : require_once 'DB.php'; PEAR::setErrorHandling(PEAR_ERROR_DIE); $db_host = 'localhost'; $db_user = 'root'; $db_pass = 'marylover'; $db_name = 'test'; $dsn = "mysql://$db_user:$db_pass@unix+$db_host/$db_name"; $db = DB::connect($dsn); ...

"Target feed is read-only" in Google Analytics API using PEAR HTTP_Request2

I'm trying to fetch all profiles for some Google Analytics account in PHP. I'm using HTTP_Request2 class from PEAR (with cURL adapter, but I've also tried with Socket) and I keep getting "Target feed is read-only" error when I try to fetch data from https://www.google.com/analytics/feeds/accounts/default I'm using ClientLogin auth metho...

yum install php-pear* on centos

Hi, I'm trying to install pear on my centos. I've used "yum install php-pear*" to install pear and it seemed to install with success. No errors. I restart my server. However when I check out phpinfo(). I see that my php is still built using "--without-pear". Isn't yum supposed to rebuild my php with pear? What would be possibly going...