Preview PHP files as HTML

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
whytek
Posts: 3
Joined: Sat Nov 07, 2009 12:10 am

Preview PHP files as HTML

Post by whytek »

Hi, I think i might be missing something, if anybody knows how to do this, please tell, if not then it stands as a feature request.

Basically, I would like to be able to preview a php file as if it were a HTML file. at present the only way I can find to do this is to either rename the file to .html and reopen it, or play with the Document Types preferences, both of those options are a hassle and mess with syntax highlighting..

that's it. simple as that. An option like "Preview all files as HTML" Please.

What's that you say? you don't understand my request? OK, maybe I am missing something like I said, but lets say i have a file called top_table.inc.php

it looks a bit like this:

<? $foo=get_foo(); ?>

<table>
<tr><td>
<?=$foo?>
</td></tr>
</table>

I want to see it in the preview panel, but I can't, I get told i have to configure for php etc.etc... but I don't care about the php, I just want to see the table!!!

And even if i did configure it for php, it's not going to work, it's going to bomb with undefined function get_foo, because get_foo is defined in the same file that includes top_table.inc.php, besides I don't want to run it through php, i just want to see the table layout.

Thanks!

K.
User avatar
ringoffire
Posts: 26
Joined: Mon Feb 05, 2007 1:24 pm
Location: Istanbul
Contact:

Re: Preview PHP files as HTML

Post by ringoffire »

+1


Yes, I agree, this feature should be implemented!
bugMan
Posts: 3
Joined: Tue Nov 24, 2009 10:28 pm

Re: Preview PHP files as HTML

Post by bugMan »

Hi everyone and body...

May be I a mistaken for I am newby to weBuilder, but...

It seems it is possible if you have ezPHP or Wamp installed on your PC as local server.
While installing weBuilder, step 6 allows you to indicate a php.exe path. I set it to
my local Wamp php.exe directory and can preview php pages...
Step 7 : Integrates with a Web Server...
Hope it helps... :wink:

Regards.

-= bugMan =-
Post Reply