Jump to content

Archived

This topic is now archived and is closed to further replies.

breezy

Dreamweaver .php pages

Recommended Posts

I'm new to Dreamweaver and am trying to create a dynamic website. Installed MySql etc. and have the connections to the database through dreamweaver set up no problem at all.

 

I can preview .html pages after creating the template with fireworks through localhost, however after changing page extensions to .php they preview as a blank screen??

 

What's going on?

 

Can anyone help???

 

Thanks,

 

Share this post


Link to post
Share on other sites

Are you viewing your PHP pages in Design View to lookat your page looks like within Dreamweaver?

 

If so then you'll need to set up a project in Dreamweaver, if you successfully set up a project in Dreamweaver a Live Preview button should apear / activated once clicked it should process a preview of your PHP Page.

Share this post


Link to post
Share on other sites

I've created a project site, and can view all .html pages stored with in it using the live button. I can even view php pages i.e. print out tables from a random database I created going live. However, any page where i've used a template from fireworks with .php ending cannot be seen. I've tried the <?php phpinfo() ?> (which works using bbedit with the other browsers on local host) through dreamweaver however that does not work. It just reproduces the line of code!!!

 

Why isn't this working properly???? Please some one put me out of my misery!!!!

Share this post


Link to post
Share on other sites

I don't believe Dreamweaver knows how to run PHP code - and therefore will do nothing with it. If you want to see what it's going to look like, you're going to have to run it through the PHP executable (php.exe) somehow, but I'm afraid I don't know the specifics of doing that.

Share this post


Link to post
Share on other sites

neylitalo, Dreamweaver can preview .php files, but it requires you to create a project for using PHP files, if you created a project suscessfully, Dreamweaver has a button called Live Preview, which just opens a window and renders the code.

 

Make sutre you have the testing server settings configured, thats how I got DW to preview my PHP pages.

Share this post


Link to post
Share on other sites

How do you create a project in DW? Never heard of or used that feature... :)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.