Link to home
Start Free TrialLog in
Avatar of ForFracksSake
ForFracksSakeFlag for United States of America

asked on

Editing PHP within Adobe DreamWeaver

Hey All,

Just had a question that is probably pretty simple to answer, but I'm missing it for some reason. Firstly, I've mostly made my sites from scratch, normally using HTML5 and CSS3 (and .xml if I'm feeling kicky). In the same breath, I normally use Sublime or JetBrains in regards to Text Editiors.

That being said, I've been looking at Dreamweaver, as our clients no longer are allowed FrontPage and it's extensions on our servers, since they are all Windows 2012 Servers ( I work in web hosting). The issue I'm having is that PHP pages, such template.php for example, will show no CSS Style Sheets in regards to previewing the page, but on the other hand, HTML do. I know this is probably simple, but I want to be able to preview and the PHP pages in design mode if possible or split view, as to better explain to our customers.

This to note:

1) Using Linux / cPanel. Have allowed my IP address access to the databases.
2) Connected Remotely to server and update as such on save.
3) Everything basically looks broken in the .php pages.

Any guidance would be appreciated. Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Since PHP often is used to generate the HTML and sometimes CSS, it is not surprising that working PHP pages look broken in Dreamweaver.
I don't think you can preview a php in dreamweaver.  It has to be viewed in a browser.  It must be uploaded.  If you don't want to have it live on the internet, you can download and set up xxamp https://www.apachefriends.org/index.html on yo9ur computer.
Avatar of ForFracksSake

ASKER

Much appreciated Dave. It's mostly for clients that for some reason or another thought it was a bright idea to use PHP in a Windows Environment. FrontPage and Interchange are the 'new' things as they see things. So I'm trying to keep it relatively simple (ish) for them. But I'm going to check your ideas out. Thanks again bud for the alternatives and not to mention timely reply!
Fast Reply and Gave Great Alternatives.
Dave's second answer is the correct one.  Dreamweaver will render HTML and CSS moderately well but it cannot render any scripting (including javascript and PHP) in Design View.  So if your PHP pages are echoing back HTML and CSS, Design View will not render that.

That being said, Dreamweaver as a text editor editor/IDE isn't terrible.  It will do code coloring, line numbering, basic syntax checking, and has a good Find/Replace function to complement the Design View.  The problem with this is that (except for design view), just about every other advanced text editor out there has the same, if not better, features coming at far less cost.
Thanks for the points, glad to help.  Note that PHP runs just fine on Windows.  I have it on at least 10 computers here and have used it on a couple of Godaddy Windows accounts.
It works, but extra modules are usually installed (if not already) to assist in the different versions of PHP that customers ask to implement.
In  my experience that is more of a problem on Linux than Windows.  Windows PHP comes with 'everything' whereas Linux, at least my systems, have required me to install added extensions, not just enable them.
What kind of Linux System are you running, that's an odd occurrence for a Windows Server to out perform a Linux server where WordPress and PHP is concerned. Since cPanel and most Linux Control Panels are Perl based, PHP naturally does better in the environment in general.
Well there you go.  I generally avoid Wordpress.  And I don't have cPanel on anything and my main Linux hosting (running Ubuntu) has no control panel at all, just an SSH login.  Both my Windows and Linux hosting on Godaddy have the Godaddy control panel.  I don't recall seeing any options there.