Questions tagged [pear]

PEAR is a repository of PHP software code, designed to offer some functionality not built into PHP core

The PHP Extension and Application Repository, or PEAR, is a repository of PHP software code.

PEAR contains a repository of hundreds of PHP libraries, ranging from HTML form generation to an IMAP protocol implementation. Its use as a package manager (for both PEAR and PECL) has been deprecated (it throws numerous warnings if you run it under PHP 5.4 or later). PEAR libraries, being normal PHP files, can be downloaded directly and included like any other PHP file. If you need a package manager for PEAR, you can use PEAR2 Pyrus, which is written in

Stig S. Bakken founded the PEAR project in 1999 to promote the re-use of code that performs common functions. The project seeks to provide a structured library of code, maintain a system for distributing code and for managing code packages, and promote a standard coding style. Though community-driven, the PEAR project has a PEAR Group which serves as the governing body and takes care of administrative tasks. Each PEAR code package comprises an independent project under the PEAR umbrella. It has its own development team, version-control and documentation.

See http://pear.php.net/ for more information.

1683 questions
0
votes
1 answer

Pear Mail script not authenticating to send mail

Howdie do, I have a very simple script that is just suppose to email a confirmation email to users. However, I keep getting the following error: authentication failure [SMTP: Failed to write to socket: not connected (code: 250, response: Hello…
Jimmy
  • 887
  • 1
  • 10
  • 24
0
votes
1 answer

correct of use of quoteSmart DB_Common Pear

I am trying to use quoteSmart to safely format my input, however it always comes back as empty when I am using quoteSmart leading me to assume that I am doing something wrong or not calling it in the right way ? $user= new…
ivan
  • 15
  • 6
0
votes
1 answer

DB_DataObject and PDO

I was told that using PDO is recommended to make my code more secure from mysql injections. I am currently using DB_DataObject that I read that cleans the input from injections as well…
ivan
  • 15
  • 6
0
votes
1 answer

how install pear mime_type on wamp server

I can not install pear mime_type on wamp server for cmd windows : $ pear install MIME_Type. No releases available for package "pear.php.net/MIME_Type" install failed
0
votes
1 answer

phpunit setup not picking up replacement version

i'm trying to change phpunit version to 3.5 following this tutorial http://dustyreagan.com/downgrade-phpunit-3-6-to-3-5-15/ the correct files seem to be installed but i get errors like these root@gerard:/home/gerard/sites/zf# phpunit…
gerard
  • 179
  • 5
0
votes
2 answers

propel-gen: command not found (phing)

I've installed the Propel ORM in my Zend Framework project with the following commands: pear channel-discover pear.phing.info pear install phing/phing pear install Log But always when I try to run propel-gen I get the following…
nielsv
  • 6,540
  • 35
  • 111
  • 215
0
votes
1 answer

Net_Geo Pear Package in PHP

I have installed the Net_Geo pear package on my PHP Server. This is the code I am using, getRecord($ip); // output echo "Single IP results:"; echo ""; print_r($results); echo ""; // example array of multiple IPs …
Biranchi
  • 16,120
  • 23
  • 124
  • 161
0
votes
1 answer

Error sending html email using Pear (PHP)

I am using pear to send SMTP mail with HTML format, everything was fine, but in the last report you make, the report goes wrong formatted and the reason is because the HTML adds an exclamation mark (!) In random parts and when it falls by means of a…
josemm1790
  • 831
  • 2
  • 11
  • 19
0
votes
2 answers

How to use php-pear with vagrant and chef behind a proxy?

I'm using the recipe git://github.com/opscode-cookbooks/php.git to install php with chef on my vagrant box (ubuntu). Unfortunatly my box is behind a proxy. It seems that I have to call something like that: pear config-set http_proxy…
koalabruder
  • 2,794
  • 9
  • 33
  • 40
0
votes
1 answer

PHP: PEAR email sends only on second pass

I am using pear to send email using the code below, on the first time through I get this error every time: "Failed to set sender: aa@bb.com [SMTP: Invalid response code received from server (code: -1, response: )]" If I debug and set the…
A_L
  • 1,116
  • 2
  • 11
  • 25
0
votes
1 answer

Installing and working with PHPUnit

I am having a hard time trying making PHPUnit work. My Directory is for php is C:/wamp/bin/php/php5.4.3 Now, I read PHPUnit does not work without PEAR, so I got the go-pear.phar file and placed it in C:/wamp/bin/php/php5.4.3/PEAR/ ran the…
anon
0
votes
1 answer

install phpunit using pear on rhel5, it shows install success, but when type "phpunit", it shows command not found

how can I handle this? I check the dir /usr/share/pear/PHPUnit, there seems no execute file in it, only have some php file although I add "/usr/share/pear/PHPUnit" to php.ini ,include_path, still no help
Tingting
  • 157
  • 1
  • 8
0
votes
3 answers

Error generating phpdoc with phing

I'm configuring Jenkins for my project and I want to create phpdoc but it doesn't works. I'm using phing and my server is with Debian. What I've made : Install phpDoc pear install phpdoc/phpDocumentor-beta Phing :
Gilles
  • 317
  • 5
  • 15
0
votes
1 answer

Cant use already installed MDB2

I installed Pear with the following command: sudo apt-get install php-pear Now Pear list gives the following output: Installed packages, channel pear.php.net: ========================================= Package Version State Archive_Tar …
Swaroop Nagendra
  • 609
  • 2
  • 15
  • 25
0
votes
5 answers

One email to forward to multiple email addresses

I am looking to create one email (example@domain.com) to forward to all email addresses in a database. People can email to example@domain.com, and then that email would get blasted to a list of predefined email addresses. It would need to include…
user2631256
  • 131
  • 1
  • 8