Perfect
Thankyou
Henry
"Erik Price" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> On Tuesday, July 2, 2002, at 01:52 PM, Henry wrote:
>
> > Imagine I have a piece of text
> >
> > "Dear [firstname]
> >
> > Thankyou for purchasing [product] on [date].
> >
On Tuesday, July 2, 2002, at 01:52 PM, Henry wrote:
> Imagine I have a piece of text
>
> "Dear [firstname]
>
> Thankyou for purchasing [product] on [date].
>
> We're sure you'll be very [expectation].
>
> Ta Very much."
>
> Whats the easiest way to replace all the things in square brackets with
Body = "";
if (empty($firstname))
$MailBody .= "Dear Customer";
else
$MailBody .= "Dear $firstname";
Note the use of .= to append to the string.
-Original Message-
From: Henry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 10:53 AM
To: [EMAIL
Imagine I have a piece of text
"Dear [firstname]
Thankyou for purchasing [product] on [date].
We're sure you'll be very [expectation].
Ta Very much."
Whats the easiest way to replace all the things in square brackets with
variables of the same name.
i.e. $firstname, $product, $date, $expecta
If you're on a unix/linux system, you can use an AWK script
-Original Message-
From: Peter Sienkiewicz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 2:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] find and replace help.. VERY important
Hello ladies and gentlemen,
I n
Hello ladies and gentlemen,
I need a function that opens up an HTML file and looks for
position:absolute;top:1038px;left:104px
then changes the left: value to be 100 less then it currently is
so it should then look like
position:absolute;top:1038px;left:4px
The problem is that the lef
ad/write/execute)
>
> The plus + can be substituted with a minus - to remove specific
> permissions, and any combination of r, w, and x can exist in there.
>
>
> - Original Message -
> From: "Shrout, Ryan" <[EMAIL PROTECTED]>
> To: "
permissions, and any combination of r, w, and x can exist in there.
- Original Message -
From: "Shrout, Ryan" <[EMAIL PROTECTED]>
To: "'Matt Kaufman'" <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 12:14 PM
Subject: RE: [PHP] Find and Replace
> Thanks
n't even use the *.inc or *.inc.php function, you can do without it
(eg
> include.php, settings.php instead of include.inc or settings.inc.php)
>
> Matt Kaufman
> - Original Message -----
> From: "Shrout, Ryan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED
On 30-Jul-2001 Shrout, Ryan wrote:
> This isn't exactly PHP I need help with, but it relates to what I learned
> about security. Up until now, I have been using *.inc extensions for my
> include files. Well, I didn't realize until recently that anyone can view
> these files. So, I want to rena
On Monday 30 July 2001 20:14, [EMAIL PROTECTED] wrote:
> It's also possible (if you're allowed to change the httpd.conf file) to put
> in a directive, something like
>
> Order deny,allow
> Deny from all
>
This is also by far the safest technique (other than moving the included
files outside y
$file.inc/$file.inc.php/g' $file.inc.php
done
---cut---
- Original Message -
From: "Shrout, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 3:06 PM
Subject: [PHP] Find and Replace
> This isn't exactly PHP I need help wit
TECTED]
Subject: Re: [PHP] Find and Replace
Oh, vi has a find and replace feature if you want to do it through the
terminal.
Matt Kaufman
- Original Message -
From: "Shrout, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 12:06 PM
Subject
I just setup apache to parse *.inc files through php.
Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "Shrout, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 1:06 PM
Subject: [PHP] Find and Replace
> This isn't exa
rom: "Shrout, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 2:06 PM
Subject: [PHP] Find and Replace
> This isn't exactly PHP I need help with, but it relates to what I learned
> about security. Up until now, I have been using *.inc exte
Oh, vi has a find and replace feature if you want to do it through the
terminal.
Matt Kaufman
- Original Message -
From: "Shrout, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 12:06 PM
Subject: [PHP] Find and Replace
> This isn&
nc or settings.inc.php)
Matt Kaufman
- Original Message -
From: "Shrout, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 12:06 PM
Subject: [PHP] Find and Replace
> This isn't exactly PHP I need help with, but it relates to what I learned
This isn't exactly PHP I need help with, but it relates to what I learned
about security. Up until now, I have been using *.inc extensions for my
include files. Well, I didn't realize until recently that anyone can view
these files. So, I want to rename them to *.inc.php. BUT, in almost all of
I have created a content stripper file that I am releasing to this newsgroup
as freeware.
The file takes a .html file that looks like this:
_
HEADER
_
CONTENT
_
FOOTER
_
and strips out the header and footer according to certain del
19 matches
Mail list logo