pear

PHP & Pear::Mail Memory Exhaustion

Solution below Hi guys. I've been trying different ways to approach this but still hitting the same error. I have a form where you can select some users email addresses and some pdf file and it will send to them. Problem is that PHP will throw an error because the script is using massive amounts of memory (over 90 meg). I have tried usi...

Can I call DB:connect without affecting the currently active DB?

I'm trying to merge to php code bases which each use a different DB. Can I call DB::connect which changing which DB is considered active? Or can I save the active DB and restore it after calling connect? Edit: The problem is one code base uses mysql_query() without providing $link_identifier, and I don't want to change all the calls, bu...

List installed packages in channel

With PHP's PEAR, how can I check whether package foo in channel bar is already installed? (Assuming that the channel bar is available, and has already been "discovered".) Something like pear list that displays installed packages in channel bar only would be ideal. ...

Where can I find PHPUnit_Extensions_SeleniumTestCase?

I have Selenium IDE/RC, and PHPUnit 3.5 (PEAR) installed, but I can't seem to find PHPUnit_Extensions_SeleniumTestCase. When I type pear install phpunit/PHPUnit_Selenium, I get the following error: phpunit/PHPUnit_Selenium is already installed and is the same as the released version 1.0.0 install failed It appears that PHPUn...

Search issues with PHP and LDAP on Windows 2008

I am trying to search through LDAP user entries on a Windows 2008 Server using PHP - PEAR's NET_LDAP2 package to be specific. I have successfully connected to the server as well as bind a user; however, searching for a user results in LDAP_OPERATIONS_ERROR. The most I can find as a solution on this is that it's hard to nail down a solu...

How to explicitly disable TLS with PEAR Mail factory?

Using PHP, I'm attempting to route email through AuthSMTP (a hosted SMTP service). The problem is that the PEAR mail factory automatically tries to negotiation a TLS connection with the server. Rather than simply ignoring the attempt, AuthSMTP throws an error. I need a way to explicitly tell the Mailer class not to try to use TLS. An...

PEAR Mail_mime not showing appropriate version

I have some trouble with PEAR when I'm using the Mail_mime class to send out HTML/text mail with embedded images. What I need script to do, is to provide an email with both a text and HTML version of the content. The content will be somewhat different. The text version will contain some text, and an image attachment. The HTML version ...

Returning a reference to an object in PHP

I'm using PHP 5.2.14 and PearLog 1.12.3. The latest documentation from the singleton method in Log.php (PEARLog) states: You MUST call this method with the $var = &Log::singleton()syntax. Without the ampersand (&) in front of the method name, you will not get a reference; you will get a copy. However, doing so generates the...

Propel as a Standalone Library

I want to use Propel as a Standalone Library just as Qcodo or Doctrine e.g. without using Pear or Phing. I want to run both the generator and runtime in a Phing Free and Pear Free Environment. Is that Possible ? ...

How to use Pear with xampp?

How do i include Pear's QuickForm into a php file if Pear is already installed in xampp? ...

QuickForm & Pear in xampp?

Im running xampp and i see the Pear folders in the php subdirectory. I have the html_quickform folder but i dont know where to place it? Do i place it in the first Pear folders or the next Pear folders? I created a HTML folder on the first Pear folder to place it in but im getting this error: **index.php** require_once('HTML/QuickForm/...

Is there any good tutorial on PEAR HTML_QuickForms2?

Hello, I've been searching for good tutorials on Pear HTML_QuickForms2 but so far I was unable to find any... I found a tutorial which claims to be able to teach you complex forms, however apart from being a good starting point doesn't get as deep as I would like.. Also, I know PEAR Docs have some reference documentation but I would ...

PHP: PEAR mail help

I'm trying out the mail pear package. It successfully sends an email but give me the following error: Strict Standards: Non-static method Mail::factory() should not be called statically, assuming $this from incompatible context in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\ClientPortal\classes\SupportTickets.php ...

How can i get phpunit to run tests from all files in a folder?

From what I've read, it seems like I should be able to set up a folder, e.g. tests/ , put a few files in it with unit test classes, and then run phpunit on that file and have it find and run the tests. For whatever reason, in my installation (on OS X), it thinks the folder tests/ is a file, or so it would seem: $ ls tests test1.php tes...