Все вопросы: [pear]

73 вопросов

похожие теги:
1
голосов
1ответов
572 просмотров

Extend HTML_BBCodeParser_Filter

I'm trying to add extra tags to the PEAR package BBCodeParser http://pear.php.net/package/HTML_BBCodeParser/docs/latest/li_HTML_BBCodeParser.html, to do this, I believe I need to place Object.php in \php5.3.0\PEAR\pear\HTML\BBCodeParser\Filter and call addFilter. Object.php <?php /* New fi...

0
голосов
1ответов
550 просмотров

Pear DB_DataObject and input cleaning

I normally use a function of my own to clean input before adding the values inside a query to prevent sql-injections. I also use pear DB_DataObject. I read somehere that DB_DataObject cleans the input itself. Is this true? Can i assign uncleaned input to a DB_DataObject object? (What about mys...

10
голосов
7ответов
11855 просмотров

Replacement for PEAR: MDB2 on PHP 5.3

I've been using pear packages in php for years. I'm in the process of upgrading/moving a sites that uses the MDB2 pear package and it has not been updated for PHP 5.3.X. In 5.3, MDB2 is returning those new annoying errors. Unknown: Assigning the return value of new by reference is deprecated i...

1
голосов
1ответов
2223 просмотров

HTTP_Request using cURL or Pear (PHP) on XML Page

I am not well-versed in HTTP requests. How can I, using PHP, grab and parse the information from this XML page, using a GET HTTP Request? http://heywatch.com/encoded_video/1850189.xml Basically, this is a video that was encoded, and I am trying to pull some of the values from the recently en...

-1
голосов
1ответов
318 просмотров

Pear Log MDB2 message length and errors

I recently set up a SQL logging framework with PEAR, and everything was working fine. However, I thought that the default length of the message field (VARCHAR 200) was a little short, so I changed my database structure in phpmyadmin to increase this to 512. However, I quickly realized that th...

2
голосов
3ответов
3579 просмотров

PHP Send UTF-8 mail without PEAR::Mail PEAR::Mail_Mime

I would like to be able to send e-mails with PHP mail() containing the 8-bit characters åäö. They will be used in the subject, the message and in the "From:"-header. How can I do this without using the PEAR packages?

2
голосов
1ответов
1940 просмотров

PHP PEAR Auth session timeout

This issue has been driving me insane. On two separate projects (both of which use PEAR as libraries but are written on completely different custom frameworks) I am using PEAR Auth for authentication which uses the session. After logging in, users are logged out within an hour or so of being idl...

0
голосов
3ответов
251 просмотров

How can I get all field values from a query with JOINed tables?

I have this elementary query: SELECT d.description, o.code FROM order_positions AS o LEFT JOIN article_descriptions AS d ON (o.article_id = d.article_id) WHERE o.order_id = 1 and I'm using MDB2 from PEAR to execute it and read the return values. But somehow the result array always contains fi...

0
голосов
1ответов
119 просмотров

Adding a radio button against each record

The following code uses the DB extention provided by PEAR. I want a radio button against each record so that the user can select only one record from the list and submit. There can be hundreds of records from table. // Proceed with getting some data... $res =& $db->query('SELECT * FROM so...

1
голосов
2ответов
2172 просмотров

PEAR's mail queue alternative?

I'm looking for a good mass mailing library for PHP. Everything seems to point to Pear's mail_queue, but I was wondering if there are any alternatives? I need something that can: Manage multiple smtp servers, each with their own per hour limit Send HTML emails Do all of this as fast as possible...

0
голосов
2ответов
920 просмотров

Is PHP PEAR included with php?

I am looking over the php installation on my local PC via Xampp and I notice in the php.ini file for the include directoy, it has includes for unix but PEAR for Windows include_path = ".:/php/includes" but for windows it has include_path = ".;C:\webserver\php\pear\" So I am wanting to...

7
голосов
3ответов
10450 просмотров

can't install PHPUnit through pear

Possible Duplicate: Installing PHPUnit via PEAR the install instructions for phpunit are running this: pear channel-discover pear.phpunit.de pear install phpunit/PHPUnit the first one goes okay , on the second I get an error: phpunit/PHPUnit requires PEAR Installer (version >= 1...

1
голосов
1ответов
763 просмотров

PHP PEAR Quickform validation help

I am using PEAR's Quickform package to validate a form I have, I need help getting a validation rule applied to a group of checkboxes. $subjectArea[] = HTML_QuickForm::createElement('advcheckbox', 'SubjectArea', null, 'Student', 'id="subjectareastudent"', 'Student'); $subjectArea[] = HTML_QuickF...

0
голосов
1ответов
151 просмотров

Problem with PEAR Auth on linux machine

I am having problems with PEAR Auth on a linux machine. On the windows machine where development took place there is no problem. Users get the invalid username/password message which is displayed whenever the auth fails. Did anyone had the same problem ? Using MDB2 for the database connection...

2
голосов
1ответов
4326 просмотров

How to use GNUPG and Crypt_GPG

I'm trying to use GNUPG and Crypt_GPG to encrypt data ready to be sent across email to a client server but i'm having problems setting it up. I've installed GNUPG on the server, and it works just fine, located in /home/myserver/.gnupg I've installed Crypt_GPG into /home/myserver/php/Crypt and e...

0
голосов
2ответов
283 просмотров

php pear net_dns

HI Does anyone know where I can find good documentation on the Pear module Net_DNS?

-1
голосов
4ответов
836 просмотров

Error using PEAR

I am learning PHP PEAR and testing the following code. However when I login, I get the following error. Could anyone tell me what is wrong with the code? ++++++++++++++++ Warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent in C...

139
голосов
5ответов
31899 просмотров

What are differences between PECL and PEAR?

I can see that GD library is for images. But I can't see differences between PECL and PEAR. Both have authentication. What are the main differences between two? Why don't they combine them?

2
голосов
5ответов
278 просмотров

PEAR alternatives in other languages

Is there a good class repository like PEAR for PHP for other languages such as Ruby or C#? If so what are they? Are they any good?

24
голосов
3ответов
42405 просмотров

how to send html mails using PEAR mail

I am using PEAR mail system to send authenticated mails.I need to send HTML mails that has alinks.It was working fine before i started using PEAR mail.Now i am not able to send HTML mails. mail body looks like this: $body = <<<EOD Hiya $username You might be interested in the current...

8
голосов
6ответов
5308 просмотров

How to show a comparison of 2 html text blocks

I need to take two text blocks with html tags and render a comparison - merge the two text blocks and then highlight what was added or removed from one version to the next. I have used the PEAR Text_Diff class to successfully render comparisons of plain text, but when I try to throw text with ht...

1
голосов
4ответов
4572 просмотров

how to create rss reader with php?

i am creating rss reader application with php.it is basicly getting rss url's from user and with php i am creating an rss reader.But i have some problems how to get rss content with php i try to use pear extension but i had some problem with that.it would be good that seeing some sample code or e...

2
голосов
3ответов
1013 просмотров

OOP php5 structure

I have been trying to make OOP PHP5 code. But I think my attempts are clumsy. These are my questions: Is their a better, more leaner way to include database config information? Can I somehow get around having to declare $db = new Db() in every function I make? Should I use PEAR as database abst...

1
голосов
3ответов
3504 просмотров

Best way to send 10,000+ emails with PEAR/Mail_Queue

I have a cron which generates the whole mail info and puts in a database table using $mail_queue->put(.....) with an option to delete emails after they're sent. Here's where I need a little help: What is the best way to send the emails after I have the above info? Running the $mail_queue->...

17
голосов
6ответов
117850 просмотров

Problem with SMTP authentication in PHP using PHPMailer, with Pear Mail works

I´m having trouble sending a e-mail with the PHPMailer class, but it works with PEAR Mail::factory. I guess the problem is with the SMTP authentication, but I couldn´t find the problem. The code with problem is: <?php require("class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSM...

2
голосов
1ответов
294 просмотров

pear php translit gives error

hi i'm working on a multilanguage project and. and i'm having some problemsi with iconv's //TRANSLIT. so i found this package. i succesfuly installed that package to my linux box but when i tried to install it on windows pear gives this error: ERROR: The DSP translit.dsp does not exist. i couldn'...

0
голосов
1ответов
452 просмотров

PHP: PEAR Calendar Grid Not Rendering in Browser

Am trying to create a grid calendar using PEAR and PHP but when I preview the file in my browser I get the following: *Warning: include(Calendar/Month/Weekdays.php) [function.include]: failed to open stream: No such file or directory in /Users/x/Sites/p/testing pages/Pear_Date.php on line ...

0
голосов
1ответов
79 просмотров

Как я могу установить количество тиков с помощью Image_Graph?

Я использую Image_Graph (хранящийся на pear.veggerby.dk) для создания некоторых графиков. Я пытался использовать методы, описанные на этой странице http://pear.php.net/reference/Image_Graph- 0.2.1 / Image_Graph / Image_Graph_Axis.html для управления тиками, но ни один из них, похоже, даже не с...

1
голосов
1ответов
336 просмотров

фатальная ошибка при использовании грушевого пейджера!

Я использовал PEAR Pager в своих проектах. он отлично работает на моем локальном сервере, но когда я загружаю его на сервер, он выдает фатальную ошибку: Fatal error: Cannot redeclare class PEAR_Common in /usr/lib/php/PEAR/Common.php on line 1123 Я не знаю, в чем проблема, как мне ее решит...

0
голосов
1ответов
526 просмотров

Ошибка драйвера источника данных PEAR

Я создаю пользовательский интерфейс базы данных для веб-сайта клиента. Я знаю, что мог бы просто использовать phpMyAdmin, но это слишком сложно для моего клиента. Вместо этого я подумал, что могу попробовать некоторые из пакетов PEAR. После некоторого исследования и изучения руководств я решил...