Removing <!DOCTYPE from a PHP Make Markup page

Hi,
I am trying to create a page with only PHP code (that I can include in a require_once() statement in another page.

I am using the action PHP MAKE MARK UP PAGE.

The trouble is, the resulting page always adds a <!DOCTYPE> tag at end which is causing PHP errors when the page is called.

Is there any way of getting Freeway not to add this tag to the page?

Thanks,

John


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Try using the PHP Make Insert Page instead. There is a version in my
repository[1] that includes some additional goodies beyond the stock
version. As with the PHP Make Markup Page Action, you put any PHP you
want to have preserved into the Before HTML slot of the Page/HTML
Markup dialog.

Walter

  1. http://freewaypro.com/actions/downloads

On Jun 26, 2008, at 8:05 AM, johnrob wrote:

Hi,
I am trying to create a page with only PHP code (that I can include
in a require_once() statement in another page.

I am using the action PHP MAKE MARK UP PAGE.

The trouble is, the resulting page always adds a <!DOCTYPE> tag at
end which is causing PHP errors when the page is called.

Is there any way of getting Freeway not to add this tag to the page?

Thanks,

John


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks again Walt, I downloaded the action and used it as you describe.

However I noticed I was using PHP MAKE MARK UP with the PHP MARK UP action (using this action to add my PHP code i.e. not in the Before HTML slot of the Page/HTML Markup dialog).

I wonder if this generated the doctype tag?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 26 Jun 2008, 2:32 pm, johnrob wrote:

However I noticed I was using PHP MAKE MARK UP with the PHP MARK UP action (using this action to add my PHP code i.e. not in the Before HTML slot of the Page/HTML Markup dialog).

I wonder if this generated the doctype tag?

It’s possible, but I think more likely there was a problem with the old Action (written in the Freeway 3 development cycle) rather than anything else.

Freeway 4 and 5 changed the way that Actions accessed the DOCTYPE tag. Previously, this tag could only be located through serious raw-text processing. Later versions of Freeway extended the Actions API to allow the Action author to directly access and remove this tag, and in the process, rendered the old trick unusable.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options