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

Different SQL result with same query in PHP and MySQL

After a quick search, I haven't find solution of my problem so I post a new one. So I have to create view in a MySQL database from a Web interface (using PHP). I use a PEAR framework for the connection with MySQL(5.0.26) I have the SQL request :…
Ark4ntes
  • 15
  • 5
0
votes
3 answers

send custom HTTP response with PHP

I want to send a custom HTTP response back to an application requesting a GET to a php script. The body is will be in binary format (octet-streams). I'm wondering if there is a simple way to do this? I am looking into the HttpResponse class in PECL…
l3utterfly
  • 2,106
  • 4
  • 32
  • 58
0
votes
1 answer

Class 'HttpResponse' not found in document

I realize this question has been asked before, but the other thread does not seem to have provided the answer. I have installed PEAR and PECL_http extension, but I am still getting this error. Do I need to include a file before using this? Any help…
l3utterfly
  • 2,106
  • 4
  • 32
  • 58
0
votes
1 answer

Quickform2: How to process the form without showing the valid form again?

Quickform2 has a nice feature. If you use the default renderer you either get the form rendered with the exposed errors if something went wrong during validation or the freezed form if all validation rules couldn't detect any error. Unfortunatly I…
0
votes
1 answer

Setting a socket timeout in PHP

I'm writing a script in PHP that uses PEAR's Net_Socket. I want to query servers to see if they have any current information. I send in a command and then use $socket->readLine() to get the response. However, if there is not a response, my script…
emilyk
  • 713
  • 5
  • 14
  • 26
0
votes
1 answer

advanced tables with pear php

I am building a dynamic table using php, pear HTML_Table, and sql. My the first query pulls the information for the table headers, and then pear uses this to create the headers. The next query pulls the information from multiple tables to return the…
royjm
  • 107
  • 14
0
votes
2 answers

Cannot install PEAR with EasyPHP 13.1 VC9

I'm trying to install PEAR on my newly installed EasyPHP 13.1. Basically, I'm following the steps described here: How to install PEAR with EasyPHP 5.3.8? The problem is that when I run command "php go-pear.phar" (as administrator), I get the…
Jardo
  • 1,939
  • 2
  • 25
  • 45
0
votes
1 answer

No From: address has been provided

I am writing a support ticket site and need email functionality (PEAR) and I keep getting this issue: "No From: address has been provided" below is part of the script showing where I think the issue is, please note: Sensitive information has been…
NoMansLand
  • 39
  • 2
  • 10
0
votes
1 answer

Using pear with PHPUnit, eclipse sees PHPUnit but not Mockery

I have installed Pear and used Pear to install PHPUnit and Mockery. I have PHPUnit running successfully in elipse (the pear directory is configured as an include path in the project). I would like to use Mockery but eclipse keeps giving me this…
dorothy Dorothy
  • 309
  • 2
  • 7
0
votes
2 answers

How to use my server's PEAR package from site root

First things first, my site is hosted on a Linux CentOS server and it already has the complete PEAR package in /usr/share/PEAR. I have written a send mail script using smtp and I want to include the server's PEAR/Mail.php in sendMail.php. Below is…
CeganB
  • 3
  • 4
0
votes
0 answers

include Mail.php using pear mail in php script

I am totally new to PHP scripting. This might be a silly question hope someone could help. I try to write a script that can send an attachment to specified destination using php. I found many recommend pear mail. Like the first answer in Send email…
Rookie
  • 161
  • 1
  • 3
  • 11
0
votes
1 answer

PHP "Crypt_Blowfish" Class Initiating Errors?

My PHP Crypt_Blowfish class initiation is throwing following error: Error: Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/Crypt/Blowfish/MCrypt.php…
夏期劇場
  • 17,821
  • 44
  • 135
  • 217
0
votes
1 answer

How to setup Mongo DB & PHP with core Mac OS 10.6.8, default Apache instance/Web Sharing

I am attempting to configure PHP and Mongo DB to connect with one another and I'm having some troubles. Before I say the problem let me recap what I have so far. I am using MAC OS X 10.6.8 I have mongo DB installed and working stand-alone. I have…
William
  • 4,422
  • 17
  • 55
  • 108
0
votes
1 answer

Solution to Send Bulk Emails in a Short Span Using PHP Application

I've a authenticated database of one million e-mail IDs. I need to send a single email to all these email IDs. I've a PHP web application using simple PHP mail() function. But i found it is not reliable when sending a very large number of emails in…
Jyothish
  • 154
  • 2
  • 11
0
votes
1 answer

PHP CRYPT_BLOWFISH Error?

I'm on Redhat and using PHP Crypt_Blowfish and having following error. ERROR: Notice: Constant CRYPT_BLOWFISH_AUTO already defined in /usr/share/pear/Crypt/Blowfish.php on line 33 Notice: Constant CRYPT_BLOWFISH_MCRYPT already defined in…
夏期劇場
  • 17,821
  • 44
  • 135
  • 217
1 2 3
99
100