On Tuesday, September 16, 2003, at 01:07 PM, Mike Blezien wrote:


Hello all,

is the a module or scripting method, in Perl, to strip a PHP file of it's coding and convert it to a pure static HTML file??

A simple substitution like


s/<\?php.*??\?>//gs

should do the trick, but I am skeptical that stripping all PHP from the page is what you really want to do. Most PHP pages have some looping or conditional logic in them which will likely make things look different than you expect.

george


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to