How can I parse html files through PHP.exe?

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
MarkusN
Posts: 16
Joined: Tue Jul 26, 2011 3:29 pm

How can I parse html files through PHP.exe?

Post by MarkusN »

All my files have the extension .html but contain php code. So on my webserver I use

AddType x-mapp-php5 .php .html
AddHandler x-mapp-php5 .php .html

to get them to be parsed by PHP.

How to do that in preview mode of WeBuilder?

Files with extension .php are shown correctly in preview mode. So these settings are correct.

Thanks for any help.
peleus
Posts: 30
Joined: Thu May 03, 2012 6:02 pm

Re: How can I parse html files through PHP.exe?

Post by peleus »

Hi Mark. I got nothing on top of my head on this. But while waiting for a reply, what version are you using?
PHP newbie Image
MarkusN
Posts: 16
Joined: Tue Jul 26, 2011 3:29 pm

Re: How can I parse html files through PHP.exe?

Post by MarkusN »

Sorry. Version should be latest one 11.2.2.131.
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Re: How can I parse html files through PHP.exe?

Post by MikeyB »

Hi,

You could try adding html as a PHP file type.
Go to Options -> Preferences -> Document Type -> PHP and add html to the list. I would also remove html from the HTML document types.
Don't know if this will help, but worth a try.

Mike
Post Reply