Re: [PHP] find and replace in php

2002-07-02 Thread Henry
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]. > >

Re: [PHP] find and replace in php

2002-07-02 Thread Erik Price
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

RE: [PHP] find and replace in php

2002-07-02 Thread Lazor, Ed
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

[PHP] find and replace in php

2002-07-02 Thread Henry
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

RE: [PHP] find and replace help.. VERY important

2002-01-16 Thread Rick Emery
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

[PHP] find and replace help.. VERY important

2002-01-16 Thread Peter Sienkiewicz
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

Re: [PHP] Find and Replace

2001-07-30 Thread Clayton Dukes
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: "&#x

RE: [PHP] Find and Replace

2001-07-30 Thread Matthew Loff
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

Re: [PHP] Find and Replace

2001-07-30 Thread Matt Kaufman
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

RE: [PHP] Find and Replace

2001-07-30 Thread Don Read
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

Re: [PHP] Find and Replace

2001-07-30 Thread Phil Driscoll
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

Re: [PHP] Find and Replace

2001-07-30 Thread Clayton Dukes
$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

RE: [PHP] Find and Replace

2001-07-30 Thread billfarr
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

Re: [PHP] Find and Replace

2001-07-30 Thread Nathan Cook
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

Re: [PHP] Find and Replace

2001-07-30 Thread Christopher Allen
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

Re: [PHP] Find and Replace

2001-07-30 Thread Matt Kaufman
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&

Re: [PHP] Find and Replace

2001-07-30 Thread Matt Kaufman
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

[PHP] Find and Replace

2001-07-30 Thread Shrout, Ryan
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

[PHP] Find and Replace script: Content Stripper; recursive subdirectories; ereg_replace, preg_replace

2001-04-27 Thread Erica Douglass
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