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
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
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
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
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 ("", "", $string);
but it didn't find it suppose because of the escape characte
5 matches
Mail list logo