FAQ Database Discussion Community


pear BBCodeParser2 couldn't parse WysiBB links

php,pear,bbcode
i used pear BBCodeParser2 with Wysibb editor,it works good for most bbcodes like bold,italic,images....etc the problem only in links,it can't parse urls in the topic,and when i look at db table, i found the url bbcode unchanged.... i checked all links and files included,and the problem still the same: php:...

Send email using PHP PEAR but unable to authenticate to smtp server

php,email,authentication,smtp,pear
I am trying to send an automated email for notification from my web page. Here's my code : include 'Mail.php'; include 'Mail/mime.php' ; $text = 'Text version of email'; $html = '<html><body>HTML version of email</body></html>'; $file = 'bg.jpg'; $crlf = "\n"; $hdrs = array( 'From' => '[email protected]', 'Subject' => 'Test...

PEAR QuickForm2 CSRF Protection

csrf,pear,quickform
I was looking for a way to ensure CSRF-Protection in my Quickform2. I found this link but it's for QuickForm1. Any ideas how I can adapt this to QF2? Thanks, Ron...

Pear Install - Console/Getopt.php not found

pear
I'm installing Pear on my web hosting using go-pear.php and I get this error: Bootstrapping Installer................... Bootstrapping PEAR5.php............(remote) ok Bootstrapping PEAR.php............(remote) ok Bootstrapping Archive/Tar.php............(remote) ok Bootstrapping Console/Getopt.php............(remote) Not Foundok I have: $bootstrap_files = array( 'PEAR5.php' => 'https://raw.githubusercontent.com/pear/pear-core/master/PEAR5.php', 'PEAR.php' => 'https://raw.githubusercontent.com/pear/pear-core/master/PEAR.php',...

Pear Mail sends email without attachment

php,email,sendmail,pear
I am trying to send mail using PHP PEAR Mail with some attached files. I am reading a text file to get the filenames and then using this to create a filePath from which I can attach the file as per the PEAR addAttachment() syntax. But when I receive the...

Add pear/xml_parser to compser.json

php,composer-php,pear
I'm trying to include pear/xml_serializer in my Laravel project. So, in the composer.json file I do "repositories": { "phppear": { "type": "pear", "url": "http://pear.php.net" } }, To load the repo, and then I include it in the require section like this: "require": { ... "pear/xml_serializer": "dev-master" }, And that works...

Pear site moved to new host, some pages not working

php,pear
I have an old shared hosting plan and I am moving the site to a new VPS hosting plan. It was coded in PHP. The site moved successfully, but when I try to access a page I get this error: Fatal error: Call to undefined method DB_DataObject_Error::getDatabaseConnection() in /var/www/mysite.com/public_html/ss/index.php on...

Magento Upgrade 1.3 1.4 Pear Error Invalid Argument foreach

magento,pear,magento-1.3
Hello I am trying to upgrade Magento 1.3 to 1.4. using this guide http://astrio.net/blog/magento-upgrade-guide/ I tried the command ./pear upgrade -f magento-core/Mage_All_Latest-stable I got the error Notice: Array to string conversion in PEAR/REST/10.php on line 85 PHP Notice: Array to string conversion in /home/www/sss/staging.mysite.net/public/downloader/pearlib/php/PEAR/REST/10.php on line 85 So I tried...

Why is the key used in the WHERE condition not found as an identifier in php?

php,sql,pear
I have an SQL statement that goes like this: SELECT ISO_id, country_name, gold, silver, bronze, total FROM Country WHERE ISO_id='GBR'; And I use it to receive information from a database via PHP and PEAR. The database returns GBR, UK, 29, 17, 19, 65 , meaning that all the information was...

Windows - PHPDocs unable to install through Pear

php,wamp,pear
When running the two commands to install phpdocs: pear channel-discover pear.phpdoc.org pear install phpdoc/phpDocumentor I get this error below saying I am unable to unpack a tgz file below. C:\wamp\bin\php\php5.5.12\pear>pear channel-discover pear.phpdoc.org C:\wamp\bin\php\php5.5.12\pear>pear install phpdoc/phpDocumentor downloading phpDocumentor-2.8.2.tgz ... Starting to download phpDocumentor-2.8.2.tgz (16,246,834 bytes) ...................................................................................

Can I rely on php extensions to be stored in /usr/lib/php5/20121212

php,pear,ansible
I'm creating an ansible role that installs a pear module (pam). I want the role to check if the module is already installed using a creates= clause. This module installs itself in /usr/lib/php5/20121212/pam.so but it feels a bit shaky to rely on that. What is a better way to find...