RE: [PHP] strip php out of html

2001-11-22 Thread Joseph Blythe
EMAIL PROTECTED] Subject: RE: [PHP] strip php out of html David, Basically I have found a way of making printable versions of every page in a website I am currently working on (without a database etc), because I am using a dreamweaver template the main content is always surrounded by: ... Just a link

RE: [PHP] strip php out of html

2001-11-22 Thread Joseph Blythe
list :) I don't need the php in the printable version so if I can either eval it or strip it out that would be nice. Regards, Joseph -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: Friday, 23 November 2001 2:28 PM To: Joseph Blythe; [EMAIL PROTECTED] Subject: R

Re: [PHP] strip php out of html

2001-11-22 Thread Michael Sims
At 02:28 PM 11/23/2001 +1030, David Robley wrote: >It sounds like you want to capture the output of the script - so you just >end up with what you would see in View Source??? If that is what he wants to do, I think this would be an easy way: $ lynx -source http://host/file_to_be_captured.php > r

Re: [PHP] strip php out of html

2001-11-22 Thread David Robley
On Fri, 23 Nov 2001 14:10, Joseph Blythe wrote: > Hello, > > Is there a way to strip only php code out of an html file? I know about > strip_tags but its going to be alot of work to make the allowable list, > as all I want to strip out is: > > > > I tried like so: > > eregi_replace ("", "", $stri