Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
First, PHP is a server side language.
So, to preview PHP, you need to access it through a web server which have a php interpreted installed.
Second, the principle of php (and jsp, asp, and any other server language) is to generate bits of html via calls to functions, and to include it into the original page.
So forget dreamweaver, or only use the developer view.
You cannot do anything with the designing view.
If the page don't need any database, go to apachefriends.com, download xampp, and follow their instruction to install the web server and php to your computer, and put your html file into the xampp/htdocs directory.
You will then be able to access it via "http://127.0.0.1/yourfile.php"
But don't wait for miracles, often PHP files are requiring others files (which are called includes) that provides configurations, variables, or datas to work on.
And if you need more details about what is PHP, try to look there first:
http://www.php.net/manual/en/introduction.php
__________________
Only a biker knows why a dog sticks his head out the window.
|