[PHP] Implode slows down file reading? [was: str_replace performance in large mailing script]

2003-08-27 Thread frederik feys
Hi all, I thought str_replace caused slow down of my mailing script, but it seems to be this line of code: $fd = implode("",file("http://www.domain.org/store/min/Mailing_template.html";) ); I first put the mailing template in $fd (only once) and then replace (str_replace) elements of it to indiv

[PHP] str_replace performance in large mailing script

2003-08-24 Thread frederik feys
Hi all,   I have a mailing script that sends individualised mails to users(some users even get more than one mail). I have a template html mail file. I individualise this by using str_replace function. It is really slow. Can anyone point me to some performance tips? I was thinking o

[PHP] Cannot add header information - headers already sent

2003-08-14 Thread frederik feys
Hi all, I’m stuck with this one: I have an checkout procedure: when people come to the overview page(step 2), they get: Warning: Cannot add header information - headers already sent by (output started at /usr/local/www/vhosts/aurelis.org/htdocs/header_aurelis.php:95) in /usr/local/www/vhosts/au

RE: [PHP] Cannot add header information - headers already sent

2003-08-14 Thread frederik feys
I suspect this step gives the "header already sent". Any help appreciated! Fré -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: dinsdag 12 augustus 2003 12:15 To: frederik feys Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Cannot add header information

RE: [PHP] Cannot add header information - headers already sent

2003-08-14 Thread frederik feys
ag 12 augustus 2003 11:03 To: frederik feys Subject: Re: [PHP] Cannot add header information - headers already sent Hi, the problem is your empty first line: HTML header will be send if you call a function that send code to client browser (ex echo or print function) or if you have a empty line betwee

RE: [PHP] headers already sent and cookie problem

2003-07-18 Thread frederik feys
alled the function and assigned it to a variable and... gone with the wind! Thanks again Mike! Regards Fred -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: vrijdag 18 juli 2003 18:20 To: 'frederik feys '; '[EMAIL PROTECTED] ' Subject: RE: [

RE: [PHP] headers already sent and cookie problem

2003-07-17 Thread frederik feys
20 To: 'frederik feys'; [EMAIL PROTECTED] Subject: RE: [PHP] headers already sent and cookie problem > -Original Message- > From: frederik feys [mailto:[EMAIL PROTECTED] > Sent: 16 July 2003 10:21 > > One nasty thing to debug is that the error only shows up from time

RE: [PHP] headers already sent and cookie problem

2003-07-16 Thread frederik feys
of text, sorry for that. But I still don't have the clue. Maybe you like to see my code? Any help welcome! Fred -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: dinsdag 15 juli 2003 11:36 To: 'frederik feys'; [EMAIL PROTECTED] Subject: RE: [PHP] h

[PHP] headers already sent and cookie problem

2003-07-15 Thread frederik feys
Hi all,   This is what i get: “Warning: Cannot add header information - headers already sent by (output started at /home/u/r/html/store/cart.php:188) in /home/u/r/html/store/includes/functions/get_cartID.php on line 14”   I know that the problem is the reading of the cookie and then af

[PHP] headers already sent-cookie-ob_flush()

2003-07-15 Thread frederik feys
Hi all,   This is what i get: “Warning: Cannot add header information - headers already sent by (output started at /home/u/r/html/store/cart.php:188) in /home/u/r/html/store/includes/functions/get_cartID.php on line 14”   I know that the problem is the reading of the cookie and then af