On 07/13/2011 04:03 PM, Karl DeSaulniers wrote:
Thanks Shawn,
I had actually found the same thing myself..
$subCc = array_map('trim',explode(,,$subCc));
But I could not find my post last night to make a new comment about it.
Thank you for yours though.. I did not think of the implode
On 07/13/2011 02:54 AM, Karl DeSaulniers wrote:
Hello All,
I am needing some assistance. I am trying to add some Cc and Bcc to a
mail script I have.
On the form I have instructions for each to be separated by a comma + a
space.
In an all perfect world each user would do this perfectly.
Le 13/07/2011 16:59, Shawn McKenzie a écrit :
On 07/13/2011 02:54 AM, Karl DeSaulniers wrote:
Hello All,
I am needing some assistance. I am trying to add some Cc and Bcc to a
mail script I have.
On the form I have instructions for each to be separated by a comma + a
space.
In an all perfect
On Jul 13, 2011, at 9:59 AM, Shawn McKenzie wrote:
On 07/13/2011 02:54 AM, Karl DeSaulniers wrote:
Hello All,
I am needing some assistance. I am trying to add some Cc and Bcc to a
mail script I have.
On the form I have instructions for each to be separated by a
comma + a
space.
In an all
looks good,
u r searching for $bible_verse_ref in $text_message_template to be replaced
by the string bible_verse_ref.
if that makes sence to u, yes its right.
ralph
ralph_def...@yahoo.de
Ron Piggott ron@actsministries.org wrote in message
Dave M G wrote:
PHP list,
This may be a simple matter. Please feel free to tell me to RTFM if you
can direct me to exactly where in the FM to R. Or, alternately, please
use simple explanations, as I'm not an experienced PHP coder.
I'm building a simple content management system, where users
Try htmlentities(), its purpose is to escape those special characters, and
it should work with any language.
Satyam
Ryan A [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hey,
I am making a site primary for the Swedish audiance, Swedish alphabets are
pretty much the same as our
On Sat, 14 Aug 2004 14:37:09 +0100
[EMAIL PROTECTED] (Andrew W) wrote:
Is the str_replace function case sensitive, I cant seem to find any
answer on the PHP manual website or in my books.
Yes. For case in-sensitve use str_ireplace
Look at the PHP manual one more time under See also
If it
Curt and Justin,
Thanks for the ideas. I resolved this by removing the str_replace() call
from within a function that I was calling and running it in-line in the
code. Since the html string was less than 500 char it seems unlikely that
it was memory but that's also about the only thing that
On Thu, 05 Aug 2004 07:21:35 -0700, Jon Bertsch [EMAIL PROTECTED] wrote:
Curt and Justin,
Thanks for the ideas. I resolved this by removing the str_replace() call
from within a function that I was calling and running it in-line in the
code. Since the html string was less than 500 char it
Justin,
We are using apache 1.3.31 (
From the original post production server to php5.0.0 running on apache
1.3.31 on SUSE9.1)
Jon Bertsch
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Adam Williams wrote:
Hi, I was wondering if I can get some help with either a str_replace or a
regex. I have some data and it always begins with $$ but it can end with
any letter of the alphabet. so sometimes its $$a and sometimes its $$b
and sometimes $$c all the way to $$z. $$a all the way
Aaron Merrick wrote:
I'm reading in to a variable $section1 an entire php file that creates a
mysql table. I can output the variable in a new file just fine (figured out
what all had to be escaped in the original file).
My problem is, I want to replace the table name in the original file with a
In case anyone wanted to know I found it:
$replacement = array(\, ,, ., !, ?,;, :,),(,\n, \t,
\v);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
For clarification, I'm looking for execution speed.
In the example below, $cmd may be a 100 plus item array and I loop through
the code below for each $cmd. So maybe I execute the code below 100 or more
times.
Thanks!
-Shawn
Shawn McKenzie [EMAIL PROTECTED] wrote in message
news:[EMAIL
take a look at the comments for the nl2br() functions, many nice examples for
problems simular to this:
http://no2.php.net/manual/en/function.nl2br.php
On Mon, 16 Jun 2003 20:49:14 +0200, Thomas Bolioli wrote
(in message [EMAIL PROTECTED]):
I am a perl/java/c++ programmer who is doing
-Original Message-
From: Sebastian [mailto:[EMAIL PROTECTED]
Sent: 15 March 2003 06:23
doesn't work but also doesn't give any errors, I will try to
explain what I
am trying to do:
I am trying to remove the header and footer to create a
printer friendly
page with just the
At 07:23 15.03.2003, Sebastian said:
[snip]
doesn't work but also doesn't give any errors, I will try to explain what I
am trying to do:
I am trying to remove the header and footer to create a printer friendly
page with just the content, here's what my
);
$footer = str_replace('include($footer);', '', $footer);
}
include($header);
?
// html
?php include($footer); ?
cheers,
- Sebastian
- Original Message -
From: John Gray [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 15, 2003 12:31 AM
Subject: [PHP] Re
Thank you, that seems to work fairly well :)
cheers,
- Sebastian
- Original Message -
From: Ernest E Vogelsinger
| At 07:23 15.03.2003, Sebastian said:
| [snip]
| doesn't work but also doesn't give any errors, I will try to explain what
I
| am
$footer = str_replace('include($header);', '', $footer);
The way you have it now, you're telling PHP to first include the file
named by the variable $header, then do an str_replace on the result; but
the parser is going to fail on that first semi-colon, and that's not
what you want to do
: John Gray [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 15, 2003 12:31 AM
Subject: [PHP] Re: str_replace
| $footer = str_replace('include($header);', '', $footer);
|
| The way you have it now, you're telling PHP to first include the file
| named by the variable $header, then do
PROTECTED]
Sent: Friday, March 14, 2003 10:23 PM
Subject: Re: [PHP] Re: str_replace
doesn't work but also doesn't give any errors, I will try to explain what
I
am trying to do:
I am trying to remove the header and footer to create a printer friendly
page with just the content, here's what my pages
I'd recommend looking at the output buffering functions. Something like this
would probably work...
ob_start();
include(links.php);
$file = ob_get_contents();
ob_end_clean();
The result of parsing and executing links.php will be in $file. Do with it
what you will.
J
Jesse wrote:
Hello
Thanks a lot, I think that will be the trick, but I'm still having a bit
of a problem.
Here's my scenario:
class mainReplace{
function feedLinks(){
ob_start();
include('links.php');
$file = ob_get_contents();
ob_end_clean();
return $file;
}
}
$replace = new
To: [EMAIL PROTECTED]
Subject: [PHP] Re: str_replace an include
Thanks a lot, I think that will be the trick, but I'm still
having a bit
of a problem.
Here's my scenario:
class mainReplace{
function feedLinks(){
ob_start();
include('links.php');
$file
;)
Timothy Hitchens (HiTCHO)
Open Source Consulting
e-mail: [EMAIL PROTECTED]
-Original Message-
From: jesse [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 22 January 2003 1:38 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: str_replace an include
Thanks a lot, I think
PROTECTED]
Subject: Re: [PHP] Re: str_replace an include
Timothy Hitchens ) wrote:
Where are you getting $read from??
That should be $replace = new mainReplace(); // notice the brackets
$read is the contents of the file that I'm reading. I
actually do have $replace = new
)
Open Source Consulting
e-mail: [EMAIL PROTECTED]
-Original Message-
From: jesse [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 22 January 2003 2:12 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: str_replace an include
Timothy Hitchens ) wrote:
Where are you getting $read from
try:
$aux = $replace-feedLinks();
$read = str_replace('!--feedLinks--!', $aux, $read);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello, i have array $reserved_words which i want to replace with bold
.. but when i tried to do str_replace($reserved_words,
b.$reserved_words./b, $string) it showed Array instead of
bword/b
if i simply do str_replace($reserved_words, $reserved_words,
$string) then it shows the words not
What about a
str_replace($reserved_words, b$reserved_words/b,$string);
Tell me.
--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
Same as with b.$reserved_words./b, i get Array :)
Chaillan Nicolas [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
What about a
str_replace($reserved_words, b$reserved_words/b,$string);
Tell me.
--
Merci de nous avoir choisi. - Thanks you for your choice.
something like this should do
foreach ($reserved_words as $key = $value)
{
$reserved_words_bold[$key] = 'b'.$value.'/b';
}
$string = str_replace($reserved_words,
$reserved_words_bold,$string);
olinux
--- Gregor J [EMAIL PROTECTED] wrote:
Same as with b.$reserved_words./b, i get Array
:)
From the manual (http://www.php.net/manual/en/function.str-replace.php
http://www.php.net/manual/en/function.str-replace.php ) In PHP 4.0.5 and
later, every parameter to str_replace() can be an array.
I tried a test case (php 4.0.0) and found that if I passed an array in as
the subject the
Actually, that may be part of the problem, I'm using the more recent PHP
Manual on my local machine, while deving on a remote machine running
4.0.3. I had assumed the subject had always accepted and returned mixed
variables in previous versions, but apparently that isn't the case. Ah
well,
36 matches
Mail list logo