Hi to all,
I'm getting my hands into PEAR for a small newsletter-sending project.
I need to boost the performance of the sending script and came accross
this mail_queue class that should queue the emails.
After sweating over the pear installation on myWindows Machine (IIS,
PHP 4.4.6, MySQL), I cannot even run the tutorial script.. I get :
Fatal error: Cannot redeclare class
mail_queue_container:mail_queue_container_db in p:\softs\php\pear\Mail
\Queue\Container\db.php on line 44
Any idea ? Nothing in the bugtracker of the package.
Thanks in advance for your help !
BR,
Damien 3 3018
On Apr 6, 11:56 am, "Ciegalo" <damien.poc...@gmail.comwrote:
Hi to all,
I'm getting my hands into PEAR for a small newsletter-sending project.
I need to boost the performance of the sending script and came accross
this mail_queue class that should queue the emails.
After sweating over the pear installation on myWindows Machine (IIS,
PHP 4.4.6, MySQL), I cannot even run the tutorial script.. I get :
Fatal error: Cannot redeclare class
mail_queue_container:mail_queue_container_db in p:\softs\php\pear\Mail
\Queue\Container\db.php on line 44
Any idea ? Nothing in the bugtracker of the package.
Thanks in advance for your help !
BR,
Damien
Hello Damien,
You should check to use include_once (or require_once), not include
(or require) statements when you are including PEAR Mail functions to
your code.
Best Regards,
Mityok
On 6 avr, 17:25, "Mityok" <mit...@gmail.comwrote:
On Apr 6, 11:56 am, "Ciegalo" <damien.poc...@gmail.comwrote:
Hi to all,
I'm getting my hands into PEAR for a small newsletter-sending project.
I need to boost the performance of the sending script and came accross
this mail_queue class that should queue the emails.
After sweating over the pear installation on myWindows Machine (IIS,
PHP 4.4.6, MySQL), I cannot even run the tutorial script.. I get :
Fatal error: Cannot redeclare class
mail_queue_container:mail_queue_container_db in p:\softs\php\pear\Mail
\Queue\Container\db.php on line 44
Any idea ? Nothing in the bugtracker of the package.
Thanks in advance for your help !
BR,
Damien
Hello Damien,
You should check to use include_once (or require_once), not include
(or require) statements when you are including PEAR Mail functions to
your code.
Best Regards,
Mityok
Hello,
Thanks for the pointer, I had not thought about that. Yet, it does not
solve the problem...
Can it be something bad I've done during setup ? An incompatibility
with IIS ? I'm using the code stroight out of the tutorial.
Thanks again !
Damien
On Apr 6, 8:43 pm, "Ciegalo" <damien.poc...@gmail.comwrote:
On 6 avr, 17:25, "Mityok" <mit...@gmail.comwrote:
On Apr 6, 11:56 am, "Ciegalo" <damien.poc...@gmail.comwrote:
Hi to all,
I'm getting my hands into PEAR for a small newsletter-sending project.
I need to boost the performance of the sending script and came accross
this mail_queue class that should queue the emails.
After sweating over the pear installation on myWindows Machine (IIS,
PHP 4.4.6, MySQL), I cannot even run the tutorial script.. I get :
Fatal error: Cannot redeclare class
mail_queue_container:mail_queue_container_db in p:\softs\php\pear\Mail
\Queue\Container\db.php on line 44
Any idea ? Nothing in the bugtracker of the package.
Thanks in advance for your help !
BR,
Damien
Hello Damien,
You should check to use include_once (or require_once), not include
(or require) statements when you are including PEAR Mail functions to
your code.
Best Regards,
Mityok
Hello,
Thanks for the pointer, I had not thought about that. Yet, it does not
solve the problem...
Can it be something bad I've done during setup ? An incompatibility
with IIS ? I'm using the code stroight out of the tutorial.
Thanks again !
Damien
Hello Damie.
No, this issue is not IIS specific.
The difference between include and include_once is that "include"
function will include given source file every time it occurs in your
source code, while "include_once" will include source file only if it
was not included before.
Example :
file : inc.php
<?php
print 'Included string!!!!<br/>';
?>
file inc_test.php
<?php
include 'inc.php';
include 'inc.php';
include 'inc.php';
?>
Output will be:
Included string!!!!<br/>
Included string!!!!<br/>
Included string!!!!<br/>
file inconce_test.php
<?php
include_once 'inc.php';
include_once 'inc.php';
include_once 'inc.php';
?>
Output will be:
Included string!!!!<br/>
BTW, read the manual, it rocks :) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: LornaJane |
last post by:
I've not done very much Java before and now I'm working on a j2me
application, however I think the trouble I have is generic java. I
can compile, preverify and jar everything fine, but the...
|
by: Kimmo Laine |
last post by:
I'm flipping my wig here, people. I'm using classes and making each class a
file. when I'm including dependet classess, I use require_once to avoid
multiple declarations - yet they happen. I put...
|
by: Midgard |
last post by:
I have this error:
Fatal error: Cannot redeclare send_welcome_mail() (previously declared in /home/oxxowhol/public_html/config.php:21) in /home/oxxowhol/public_html/config.php on line 21
Why?
|
by: mrityunjay11 |
last post by:
my ccode goes as such
this is php_dbi.php
<?
function dbi_connect ( $host, $login, $password, $database ) {
if ( strcmp ( $GLOBALS, "mysql" ) == 0 ) {
$c = mysql_pconnect (...
|
by: srilathaapi |
last post by:
Hi All,
I am getting the error cannot redeclare the class some xxx in
file xxx.php.
bcz i m including xxx.php in 3 diffrent functions in the same file to
invoke the 3 differnet functions in the...
|
by: srilathaapi |
last post by:
Hi All,
I am getting the error cannot redeclare the class some xxx in
file xxx.php.
bcz i m including xxx.php in 3 diffrent functions in the same file to
invoke the 3 differnet functions in the...
|
by: Just Another Victim of the Ambient Morality |
last post by:
I have a peculiar bug in my PHP code. It looks something like this:
Fatal error: Cannot redeclare func_name() (previously declared in
script.php:57) in script.php on line 57
I've done a...
|
by: willlen |
last post by:
Hello, I got message:
Fatal error: Cannot redeclare sqlconnect() (previously declared in E:\Program Files\Apache Group\Apache2\htdocs\openemr-2.9.0\library\sql.inc:33) in E:\program files\apache...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| | |