Preview PHP files as HTML

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

Moderator: kfury77

Preview PHP files as HTML

Postby whytek » Sat Nov 07, 2009 12:22 am

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.
whytek
 
Posts: 1
Joined: Sat Nov 07, 2009 12:10 am

Re: Preview PHP files as HTML

Postby ringoffire » Tue Nov 10, 2009 9:20 pm

+1


Yes, I agree, this feature should be implemented!
User avatar
ringoffire
 
Posts: 26
Joined: Mon Feb 05, 2007 1:24 pm
Location: Istanbul

Re: Preview PHP files as HTML

Postby bugMan » Fri Nov 27, 2009 10:22 pm

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 =-
bugMan
 
Posts: 3
Joined: Tue Nov 24, 2009 10:28 pm


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest