Jump to content

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,

 

Link to comment
https://forums.phpfreaks.com/topic/2436-dreamweaver-php-pages/
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.

Link to comment
https://forums.phpfreaks.com/topic/2436-dreamweaver-php-pages/#findComment-8073
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!!!!

Link to comment
https://forums.phpfreaks.com/topic/2436-dreamweaver-php-pages/#findComment-8078
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.

Link to comment
https://forums.phpfreaks.com/topic/2436-dreamweaver-php-pages/#findComment-8079
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.

Link to comment
https://forums.phpfreaks.com/topic/2436-dreamweaver-php-pages/#findComment-8081
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.