I have installed Apache 2 on my machine, and configured PHP
However whenever I write an html file which references a php file, it tries to open the file in Dreamweaver rather than displaying results in the browser
Are you running the HTML file through the web server, or locally? PHP is only processed if you're in the web server. If the file URL starts with file:\\, you're accessing the pages locally. They need to have a URL that begins with
grabrail:
That's why I asked -- there were too many interpretations of your sentence. I would have phrased the description of your example as "an HTML page with a form that submits to a PHP script".
In general, I advice those who are just beginning to learn PHP to not use a complex IDE like Dreamweaver. It will, if you let it, do too much for you and can hinder your learning PHP. In particular, folks who are learning PHP by programming through Dreamweaver tend to lag a bit in getting used to the layout of the PHP online manual:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.